WPSEO_Addon_Manager::register_expired_messages()publicYoast 1.0

Registers "expired subscription" warnings to the update messages of our addons.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Addon_Manager = new WPSEO_Addon_Manager();
$WPSEO_Addon_Manager->register_expired_messages();

Код WPSEO_Addon_Manager::register_expired_messages() Yoast 18.8

public function register_expired_messages() {
	foreach ( array_keys( $this->get_installed_addons() ) as $plugin_file ) {
		add_action( 'in_plugin_update_message-' . $plugin_file, [ $this, 'expired_subscription_warning' ], 10, 2 );
	}
}