-
Home
-
Countdown, Coming Soon, Maintenance – Countdown & Clock
- Tips
How to Hide Countdown builder Admin Menus
function plt_hide_countdown_builder_menus() {
//Hide "Coming Soon".
remove_menu_page('ycdComingSoon');
//Hide "Countdown Clock".
remove_menu_page('edit.php?post_type=ycdcountdown');
//Hide "Countdown Clock → All Countdown & Clock".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'edit.php?post_type=ycdcountdown');
//Hide "Countdown Clock → Add New Countdown".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'post-new.php?post_type=ycdcountdown');
//Hide "Countdown Clock → Countdown Types".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdcountdown');
//Hide "Countdown Clock → Newsletter Pro".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdNewsletter');
//Hide "Countdown Clock → Coming Soon".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdComingSoon');
//Hide "Countdown Clock → Support".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'supports');
//Hide "Countdown Clock → Tutorials".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdTutorials');
//Hide "Countdown Clock → More Ideas?".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdIdeas');
//Hide "Countdown Clock → Subscribers Pro".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdSubscribers');
//Hide "Countdown Clock → More Plugins".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdPlugins');
//Hide "Countdown Clock → Settings".
remove_submenu_page('edit.php?post_type=ycdcountdown', 'ycdSettings');
}
add_action('admin_menu', 'plt_hide_countdown_builder_menus', 11);
Where do I put this code?
How to Hide Countdown builder Meta Boxes
function plt_hide_countdown_builder_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Feature Request" meta box.
remove_meta_box('ycdFeatureRequest', $screen->id, 'side');
//Hide the "Upgrade" meta box.
remove_meta_box('ycdUpgrade', $screen->id, 'side');
//Hide the "Support" meta box.
remove_meta_box('ycdSupport', $screen->id, 'side');
//Hide the "Info" meta box.
remove_meta_box('ycdShortcodeMetabox', $screen->id, 'side');
//Hide the "Advanced Options" meta box.
remove_meta_box('advancedOptions', $screen->id, 'normal');
//Hide the "Display Rules" meta box.
remove_meta_box('displayRules', $screen->id, 'normal');
//Hide the "General Options" meta box.
remove_meta_box('generalOptions', $screen->id, 'normal');
//Hide the "Subscription Section" meta box.
remove_meta_box('subscription', $screen->id, 'normal');
//Hide the "After Expire" meta box.
remove_meta_box('afterCountdownExpire', $screen->id, 'normal');
//Hide the "Countdown Button Extension" meta box.
remove_meta_box('countdownButton', $screen->id, 'normal');
//Hide the "Float countdown" meta box.
remove_meta_box('floatCountdown', $screen->id, 'normal');
//Hide the "Progress Bar" meta box.
remove_meta_box('ycdMetaboxProgress', $screen->id, 'normal');
//Hide the "Countdown options" meta box.
remove_meta_box('ycdMainOptions', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_countdown_builder_metaboxes', 20);