WC_Helper_Compat::remove_actions()
Remove legacy helper actions (notices, menus, etc.)
Метод класса: WC_Helper_Compat{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Helper_Compat::remove_actions();
Код WC_Helper_Compat::remove_actions() WC Helper Compat::remove actions WC 9.4.2
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' ) ); }