WPSEO_Import_Plugins_Detector::detect()
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() WPSEO Import Plugins Detector::detect Yoast 25.0
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(); } } }