WPSEO_Upgrade::clean_all_notifications()
Removes all notifications saved in the database under 'wp_yoast_notifications'.
Метод класса: WPSEO_Upgrade{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->clean_all_notifications();
Код WPSEO_Upgrade::clean_all_notifications() WPSEO Upgrade::clean all notifications Yoast 24.9
private function clean_all_notifications() { global $wpdb; delete_metadata( 'user', 0, $wpdb->get_blog_prefix() . Yoast_Notification_Center::STORAGE_KEY, '', true ); }