WC_Helper_Updater::add_hook_for_modifying_update_notices()public staticWC 1.0

Add the hook for modifying default WPCore update notices on the plugins management page.

Метод класса: WC_Helper_Updater{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WC_Helper_Updater::add_hook_for_modifying_update_notices();

Код WC_Helper_Updater::add_hook_for_modifying_update_notices() WC 9.4.2

public static function add_hook_for_modifying_update_notices() {
	if ( ! WC_Woo_Update_Manager_Plugin::is_plugin_active() || ! WC_Helper::is_site_connected() ) {
		add_action( 'load-plugins.php', array( __CLASS__, 'setup_update_plugins_messages' ), 11 );
	}
	if ( WC_Helper::is_site_connected() ) {
		add_action( 'load-plugins.php', array( __CLASS__, 'setup_message_for_expired_and_expiring_subscriptions' ), 11 );
		add_action( 'load-plugins.php', array( __CLASS__, 'setup_message_for_plugins_without_subscription' ), 11 );
	}
}