WC_Helper_Compat::remove_actions()
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() WC Helper Compat::remove actions code WC 9.7.1
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' ) ); }