WPSEO_Import_SEOPressor::cleanup │ protected │ Yoast 1.0

Removes all the post meta fields SEOpressor creates.

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

Хуков нет.

Возвращает

bool. Cleanup status.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->cleanup();

Код WPSEO_Import_SEOPressor::cleanup() Yoast 28.9

protected function cleanup() {
	global $wpdb;

	// If we get to replace the data, let's do some proper cleanup.
	return $wpdb->query( "DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE '_seop_%'" );
}