Remove post comments metabox

WordPress Tutorial – Adding this PHP code to the functions.php of your wordpress theme will remove the post comments metabox from the wordpress admin.

 

 

 

function remove_post_comments_metabox() {
remove_meta_box( 'commentstatusdiv','post','normal' );
}
add_action('admin_menu','remove_post_comments_metabox');

Leave a comment