-
Home
-
WordPress Review Plugin: The Ultimate Solution for Building a Review Website
- Tips
How to Hide the "WP Review" Admin Menu
function plt_hide_wp_review_menus() {
//Hide the "Settings → WP Review" menu.
remove_submenu_page('options-general.php', 'wp-review/admin/options.php');
}
add_action('admin_menu', 'plt_hide_wp_review_menus', 11);
Where do I put this code?
How to Hide WP Review Meta Boxes
function plt_hide_wp_review_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Review" meta box.
remove_meta_box('wp-review-metabox-review', $screen->id, 'normal');
//Hide the "Review Item" meta box.
remove_meta_box('wp-review-metabox-item', $screen->id, 'normal');
//Hide the "Review Links" meta box.
remove_meta_box('wp-review-metabox-reviewLinks', $screen->id, 'normal');
//Hide the "Review Description" meta box.
remove_meta_box('wp-review-metabox-desc', $screen->id, 'normal');
//Hide the "User Reviews" meta box.
remove_meta_box('wp-review-metabox-userReview', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_wp_review_metaboxes', 20);