WPSEO_Upgrade::upgrade_123()
Performs the 12.3 upgrade.
Removes the about notice when its still in the database.
Метод класса: WPSEO_Upgrade{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->upgrade_123();
Код WPSEO_Upgrade::upgrade_123() WPSEO Upgrade::upgrade 123 Yoast 25.0
private function upgrade_123() { $plugins = [ 'yoast-seo-premium', 'video-seo-for-wordpress-seo-by-yoast', 'yoast-news-seo', 'local-seo-for-yoast-seo', 'yoast-woocommerce-seo', 'yoast-acf-analysis', ]; $center = Yoast_Notification_Center::get(); foreach ( $plugins as $plugin ) { $center->remove_notification_by_id( 'wpseo-outdated-yoast-seo-plugin-' . $plugin ); } }