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.

Method of the class: WC_Helper_Updater{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Helper_Updater::add_hook_for_modifying_update_notices();

WC_Helper_Updater::add_hook_for_modifying_update_notices() code WC 8.9.0

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 );
	}
}