WPSEO_Import_Plugins_Detector::detect()publicYoast 1.0

Detects whether we need to import anything.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WPSEO_Import_Plugins_Detector = new WPSEO_Import_Plugins_Detector();
$WPSEO_Import_Plugins_Detector->detect();

Код WPSEO_Import_Plugins_Detector::detect() Yoast 22.4

public function detect() {
	foreach ( WPSEO_Plugin_Importers::get() as $importer_class ) {
		$importer = new $importer_class();
		$detect   = new WPSEO_Import_Plugin( $importer, 'detect' );
		if ( $detect->status->status ) {
			$this->needs_import[ $importer_class ] = $importer->get_plugin_name();
		}
	}
}