-
Home
-
WordPress Review Site Builder
- Tips
How to Hide Review Site Builder Admin Menus
function plt_hide_wereviews_menus() {
//Hide "Reviews".
remove_menu_page('edit.php?post_type=reviews');
//Hide "Reviews → All Reviews".
remove_submenu_page('edit.php?post_type=reviews', 'edit.php?post_type=reviews');
//Hide "Reviews → Add New Review".
remove_submenu_page('edit.php?post_type=reviews', 'post-new.php?post_type=reviews');
//Hide "Reviews → Tags".
remove_submenu_page('edit.php?post_type=reviews', 'edit-tags.php?taxonomy=post_tag&post_type=reviews');
//Hide "Reviews → Categories".
remove_submenu_page('edit.php?post_type=reviews', 'edit-tags.php?taxonomy=genre&post_type=reviews');
}
add_action('admin_menu', 'plt_hide_wereviews_menus', 15);
Where do I put this code?
How to Hide Review Site Builder Meta Boxes
function plt_hide_wereviews_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Review Details Get the review themes specially build for this plugin >>" meta box.
remove_meta_box('reviews-details', $screen->id, 'normal');
//Hide the "Individual Feature Ratings" meta box.
remove_meta_box('reviews-rating', $screen->id, 'normal');
//Hide the "Secondary Image" meta box.
remove_meta_box('individual-reviews', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_wereviews_metaboxes', 20);