WPSEO_Import_Squirrly::cleanup
Removes the DB table and the post meta field Squirrly creates.
Метод класса: WPSEO_Import_Squirrly{}
Хуков нет.
Возвращает
true|false. Cleanup status.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->cleanup();
Код WPSEO_Import_Squirrly::cleanup() WPSEO Import Squirrly::cleanup Yoast 27.3
protected function cleanup() {
global $wpdb;
// If we can clean, let's clean.
$wpdb->query( "DROP TABLE {$this->table_name}" );
// This removes the post meta field for the focus keyword from the DB.
parent::cleanup();
// If we can still see the table, something went wrong.
if ( $this->detect() ) {
$this->cleanup_error_msg();
return false;
}
return true;
}