Remove Meta Boxes From Admin Editor


/ Published in: PHP
Save to your folder(s)

Clean up your Admin Editor view by removing unwanted meta boxes that create clutter.


Copy this code and paste it in your HTML
  1. // Remove Meta Boxes From Admin Editor
  2. function remove_meta_boxes() {
  3.  
  4. // Remove From Posts
  5. remove_meta_box('postcustom','post','normal');
  6. remove_meta_box('trackbacksdiv','post','normal');
  7. remove_meta_box('commentstatusdiv','post','normal');
  8. remove_meta_box('commentsdiv','post','normal');
  9. remove_meta_box('tagsdiv-post_tag','post','normal');
  10. remove_meta_box('postexcerpt','post','normal');
  11.  
  12. // Remove From Pages
  13. remove_meta_box('postcustom','page','normal');
  14. remove_meta_box('trackbacksdiv','page','normal');
  15. remove_meta_box('commentstatusdiv','page','normal');
  16. remove_meta_box('commentsdiv','page','normal');
  17. }
  18. add_action('admin_init','remove_meta_boxes');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.