-
Home
-
Rate My Post – Star Rating Plugin by FeedbackWP
- Tips
How to Hide FeedbackWP - Rate My Post - WP Rating System Admin Menus
function plt_hide_rate_my_post_menus() {
//Hide "FeedbackWP".
remove_menu_page('rate-my-post');
//Hide "FeedbackWP → Settings".
remove_submenu_page('rate-my-post', 'rate-my-post');
//Hide "FeedbackWP → Stats".
remove_submenu_page('rate-my-post', 'rate-my-post-stats');
//Hide "FeedbackWP → Analytics".
remove_submenu_page('rate-my-post', 'rate-my-post-analytics');
//Hide "FeedbackWP → Upgrade to Pro".
remove_submenu_page('rate-my-post', 'https://feedbackwp.com/pricing/?utm_source=wp_dashboard&utm_medium=menu-link&utm_campaign=menu-upsell');
}
add_action('admin_menu', 'plt_hide_rate_my_post_menus', 10000);
Where do I put this code?
How to Hide the "FeedbackWP Ratings" Meta Box
function plt_hide_rate_my_post_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "FeedbackWP Ratings" meta box.
remove_meta_box('rmp-rate-id', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_rate_my_post_metaboxes', 20);