WPSEO_Import_AIOSEO_V4::detect
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() WPSEO Import AIOSEO V4::detect Yoast 26.9
protected function detect() {
$aioseo_cleanup_action = YoastSEO()->classes->get( Aioseo_Cleanup_Action::class );
return ( $aioseo_cleanup_action->get_total_unindexed() > 0 );
}