WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

WPSEO_Upgrade::upgrade_125() public Yoast 1.0

Performs the 12.5 upgrade.

{} Это метод класса: WPSEO_Upgrade{}

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Upgrade = new WPSEO_Upgrade();
$WPSEO_Upgrade->upgrade_125();

Код WPSEO_Upgrade::upgrade_125() Yoast 16.2

<?php
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' );
}