-
Home
-
WonderPush – Web Push Notifications – WooCommerce Abandoned Cart – GDPR
- Tips
How to Hide the "WonderPush" Admin Menu
function plt_hide_wonderpush_web_push_notifications_menus() {
//Hide the "WonderPush" menu.
remove_menu_page('wonderpush');
}
add_action('admin_menu', 'plt_hide_wonderpush_web_push_notifications_menus', 11);
Where do I put this code?
How to Hide the "WonderPush Push Notifications" Meta Box
function plt_hide_wonderpush_web_push_notifications_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "WonderPush Push Notifications" meta box.
remove_meta_box('wonderpush_meta_box', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_wonderpush_web_push_notifications_metaboxes', 20);