WPSEO_Upgrade::upgrade_125()
Performs the 12.5 upgrade.
Метод класса: WPSEO_Upgrade{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WPSEO_Upgrade = new WPSEO_Upgrade(); $WPSEO_Upgrade->upgrade_125();
Код WPSEO_Upgrade::upgrade_125() WPSEO Upgrade::upgrade 125 Yoast 20.3
public function upgrade_125() { // Disables the force rewrite title when the theme supports it through WordPress. if ( WPSEO_Options::get( 'forcerewritetitle', false ) && current_theme_supports( 'title-tag' ) ) { WPSEO_Options::set( 'forcerewritetitle', false ); } global $wpdb; $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'wp_yoast_promo_hide_premium_upsell_admin_block'" ); // Removes the WordPress update notification, because it is no longer necessary when WordPress 5.3 is released. $center = Yoast_Notification_Center::get(); $center->remove_notification_by_id( 'wpseo-dismiss-wordpress-upgrade' ); }