-
Home
-
Worth The Read
- Tips
How to Hide Worth The Read Admin Menus
function plt_hide_worth_the_read_menus() {
//Hide "Settings → Redux".
remove_submenu_page('options-general.php', 'redux-framework');
//Hide "Worth The Read".
remove_menu_page('wtr_options');
//Hide "Worth The Read → Reading Progress".
remove_submenu_page('wtr_options', 'wtr_options&tab=1');
//Hide "Worth The Read → Time Commitment".
remove_submenu_page('wtr_options', 'wtr_options&tab=4');
//Hide "Worth The Read → Import / Export".
remove_submenu_page('wtr_options', 'wtr_options&tab=7');
}
add_action('admin_menu', 'plt_hide_worth_the_read_menus', 13);
Where do I put this code?
How to Hide the "Worth The Read" Meta Box
function plt_hide_worth_the_read_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Worth The Read" meta box.
remove_meta_box('wtr_custom', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_worth_the_read_metaboxes', 20);