WPSEO_Import_AIOSEO_V4::detect()protectedYoast 1.0

Detects whether there is AIOSEO data to import by looking whether the AIOSEO data have been cleaned up.

Метод класса: WPSEO_Import_AIOSEO_V4{}

Хуков нет.

Возвращает

true|false. Boolean indicating whether there is something to import.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->detect();

Код WPSEO_Import_AIOSEO_V4::detect() Yoast 22.3

protected function detect() {
	$aioseo_cleanup_action = YoastSEO()->classes->get( Aioseo_Cleanup_Action::class );
	return ( $aioseo_cleanup_action->get_total_unindexed() > 0 );
}