WPSEO_Import_Squirrly::cleanup()protectedYoast 1.0

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() Yoast 22.7

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.

	// If we can still see the table, something went wrong.
	if ( $this->detect() ) {
		return false;

	return true;