-
Home
-
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce
- Tips
How to Hide HurryTimer Admin Menus
function plt_hide_hurrytimer_menus() {
//Hide "HurryTimer".
remove_menu_page('hurrytimer');
//Hide "HurryTimer → All Campaigns".
remove_submenu_page('hurrytimer', 'edit.php?post_type=hurrytimer_countdown');
//Hide "HurryTimer → Add Campaign".
remove_submenu_page('hurrytimer', 'post-new.php?post_type=hurrytimer_countdown');
//Hide "HurryTimer → Settings".
remove_submenu_page('hurrytimer', 'hurrytimer_settings');
}
add_action('admin_menu', 'plt_hide_hurrytimer_menus', 11);
Where do I put this code?
How to Hide the "Get the Most of HurryTimer" Meta Box
function plt_hide_hurrytimer_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Get the Most of HurryTimer" meta box.
remove_meta_box('hurrytimer-upgrade-banner', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_hurrytimer_metaboxes', 20);