-
Home
-
Page and Post Description
- Tips
How to Hide the "Page and Post Description" Admin Menu
function plt_hide_page_and_post_description_menus() {
//Hide the "Settings → Page and Post Description" menu.
remove_submenu_page('options-general.php', 'page-and-post-description/options.php');
}
add_action('admin_menu', 'plt_hide_page_and_post_description_menus', 11);
Where do I put this code?
How to Hide the "Description" Meta Box
function plt_hide_page_and_post_description_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Description" meta box.
remove_meta_box('PageAndPostDescription_MetaField', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_page_and_post_description_metaboxes', 20);