WC_Helper_Compat::remove_actions()public staticWC 1.0

Remove legacy helper actions (notices, menus, etc.)

Method of the class: WC_Helper_Compat{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Helper_Compat::remove_actions();

WC_Helper_Compat::remove_actions() code WC 8.7.0

public static function remove_actions() {
	// Remove WooThemes Updater notices
	remove_action( 'network_admin_notices', array( $GLOBALS['woothemes_updater']->admin, 'maybe_display_activation_notice' ) );
	remove_action( 'admin_notices', array( $GLOBALS['woothemes_updater']->admin, 'maybe_display_activation_notice' ) );
	remove_action( 'network_admin_menu', array( $GLOBALS['woothemes_updater']->admin, 'register_settings_screen' ) );
	remove_action( 'admin_menu', array( $GLOBALS['woothemes_updater']->admin, 'register_settings_screen' ) );
}