Posted By

fjarrett on 09/29/10


Tagged

wordpress


Versions (?)

Remove Meta Boxes From Admin Editor


 / Published in: PHP
 

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

  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  

You need to login to post a comment.