Hide WordPress Meta Boxes in the Post Editor
-
Hi All,
Re: I’m trying to remove some meta boxes from post editor and I’m using Neve theme
I have tried the following code many times, however it has not changed a bit the outlook of post editor
function remove_meta_boxes() { # Removes meta from Posts # remove_meta_box('postexcerpt','post','normal' ); remove_meta_box('postcustom','post','normal'); remove_meta_box('trackbacksdiv','post','normal'); remove_meta_box('commentstatusdiv','post','normal'); remove_meta_box('commentsdiv','post','normal'); remove_meta_box('tagsdiv-table_tags','post','normal'); remove_meta_box('tagsdiv-post_tag','post','normal'); remove_meta_box('comment-hacks-reroute','post','normal'); } add_action('admin_init','remove_meta_boxes');
I want to leave the Category, featured image, status & visibility and permalink in sidebar of post editor and remove every other metabox such as Author, Excerpt, Tags, Yoast Comment Hacks, Discussion, Post Attributes, Post Settings,
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Hide WordPress Meta Boxes in the Post Editor’ is closed to new replies.