-
Home
-
A WordPress Testimonial Plugin to Showcase Testimonial Slider, Testimonial Grid and More: Solid Testimonials
- Tips
How to Hide Solid Testimonials Admin Menus
function plt_hide_gs_testimonial_menus() {
//Hide "Solid Testimonials".
remove_menu_page('edit.php?post_type=gs_testimonial');
//Hide "Solid Testimonials → All Testimonials".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'edit.php?post_type=gs_testimonial');
//Hide "Solid Testimonials → Add New".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'post-new.php?post_type=gs_testimonial');
//Hide "Solid Testimonials → Category".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'edit-tags.php?taxonomy=testimonial_category&post_type=gs_testimonial');
//Hide "Solid Testimonials → Shortcodes".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gst-shortcodes');
//Hide "Solid Testimonials → Sort Group Order".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'sort_group_gs_testimonial');
//Hide "Solid Testimonials → Sort Testimonials".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'sort_gs_testimonial');
//Hide "Solid Testimonials → Install Demo".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gst-shortcodes#/demo-data');
//Hide "Solid Testimonials → Free Pro Trial".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'http://127.0.0.1/wp-admin/edit.php?post_type=gs_testimonial&billing_cycle=annual&trial=true&page=gs-testimonial-pricing');
//Hide "Solid Testimonials → Help & Usage".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gs-testimonial-plugins-help');
//Hide "Solid Testimonials → Contact Us".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gs-testimonial-contact');
//Hide "Solid Testimonials → Support Forum".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gs-testimonial-wp-support-forum');
//Hide "Solid Testimonials → Upgrade".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gs-testimonial-pricing');
//Hide "Solid Testimonials → GS Plugins Pro".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gs-testimonial-plugins-premium');
//Hide "Solid Testimonials → GS Plugins Lite".
remove_submenu_page('edit.php?post_type=gs_testimonial', 'gs-testimonial-plugins-lite');
}
add_action('admin_menu', 'plt_hide_gs_testimonial_menus', 2147483647);
Where do I put this code?
How to Hide Solid Testimonials Meta Boxes
function plt_hide_gs_testimonial_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Reviewer Information" meta box.
remove_meta_box('gs_testimonial_sectionid', $screen->id, 'normal');
//Hide the "Reviewer Extra Information" meta box.
remove_meta_box('gs_testimonial_sectionid_pro', $screen->id, 'normal');
//Hide the "Social Profiles" meta box.
remove_meta_box('gs_testimonial_social_profiles', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_gs_testimonial_metaboxes', 20);