WPSEO_Plugin_Importer::run_detect()publicYoast 1.0

Detects whether an import for this plugin is needed.

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

Хуков нет.

Возвращает

WPSEO_Import_Status. Import status object.

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

$WPSEO_Plugin_Importer = new WPSEO_Plugin_Importer();
$WPSEO_Plugin_Importer->run_detect();

Код WPSEO_Plugin_Importer::run_detect() Yoast 19.11

public function run_detect() {
	$this->status = new WPSEO_Import_Status( 'detect', false );

	if ( ! $this->detect() ) {
		return $this->status;
	}

	return $this->status->set_status( true );
}