<?php
/* 
= Remove edit screen metaboxes
* WordPress: 3.3.1
* Version: 1.0
* URL: elbone.com.au
* Files: functions.php
*/

// Change 'post' to post type
add_action('admin_menu','elbone_remove_default_metaboxes');
if (!function_exists('elbone_remove_default_metaboxes') {
    function elbone_remove_default_metaboxes() {
        $post_type = 'post';
        // Uncomment those you wish to remove
        //remove_meta_box('postcustom', $post_type, 'normal'); // Custom Fields Metabox
        //remove_meta_box('postexcerpt', $post_type, 'normal'); // Excerpt Metabox
        //remove_meta_box('commentstatusdiv', $post_type, 'normal'); // Comments Metabox
        //remove_meta_box('trackbacksdiv', $post_type, 'normal'); // Talkback Metabox
        //remove_meta_box('slugdiv', $post_type, 'normal'); // Slug Metabox
        //remove_meta_box('authordiv', $post_type, 'normal'); // Author Metabox
    }
}