Remove meta-boxes

The pages- and posts-page are very cluttered, why not clean them up a bit? You can remove the meta-boxes you don’t use, using this snippet.

Code Snippet:

<?php
function remove_meta_boxes() {
  # Removes meta from Posts #
  remove_meta_box('postcustom','post','normal');
  remove_meta_box('trackbacksdiv','post','normal');
  remove_meta_box('commentstatusdiv','post','normal');
  remove_meta_box('commentsdiv','post','normal');
  # Removes meta from pages #
  remove_meta_box('postcustom','page','normal');
  remove_meta_box('trackbacksdiv','page','normal');
  remove_meta_box('commentstatusdiv','page','normal');
  remove_meta_box('commentsdiv','page','normal');
}
add_action('admin_init','remove_meta_boxes');
?>

Posted in Admin area