WPSEO_Plugin_Importer::run_cleanup()publicYoast 1.0

Removes the plugin data from the database.

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

Хуков нет.

Возвращает

WPSEO_Import_Status. Import status object.

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

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

Код WPSEO_Plugin_Importer::run_cleanup() Yoast 22.4

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

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

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