-
Home
-
Cool Timeline (Horizontal & Vertical Timeline)
- Tips
How to Hide Cool Timeline Admin Menus
function plt_hide_cool_timeline_menus() {
//Hide "Timeline Addons".
remove_menu_page('cool-plugins-timeline-addon');
//Hide "Timeline Addons → Dashboard".
remove_submenu_page('cool-plugins-timeline-addon', 'cool-plugins-timeline-addon');
//Hide "Timeline Addons → Cool Timeline Stories".
remove_submenu_page('cool-plugins-timeline-addon', 'edit.php?post_type=cool_timeline');
//Hide "Timeline Addons → Add New Story".
remove_submenu_page('cool-plugins-timeline-addon', 'post-new.php?post_type=cool_timeline');
//Hide "Timeline Addons → Timeline Settings".
remove_submenu_page('cool-plugins-timeline-addon', 'cool_timeline_settings');
}
add_action('admin_menu', 'plt_hide_cool_timeline_menus', 11);
Where do I put this code?
How to Hide Cool Timeline Meta Boxes
function plt_hide_cool_timeline_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Timeline Story Settings" meta box.
remove_meta_box('ctl_post_meta', $screen->id, 'normal');
//Hide the "Cool Timeline Pro Features" meta box.
remove_meta_box('feautre_list', $screen->id, 'side');
//Hide the "Please Share Your Feedback" meta box.
remove_meta_box('review_us', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_cool_timeline_metaboxes', 20);