WPSEO_Import_SEOPressor::cleanup()
Removes all the post meta fields SEOpressor creates.
Метод класса: WPSEO_Import_SEOPressor{}
Хуков нет.
Возвращает
true|false
. Cleanup status.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->cleanup();
Код WPSEO_Import_SEOPressor::cleanup() WPSEO Import SEOPressor::cleanup Yoast 22.4
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_%'" ); }