WPSEO_Plugin_Importer::run_cleanup
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() WPSEO Plugin Importer::run cleanup Yoast 27.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() );
}