Each area on the edit post page is added as a “meta box”.
Look at the several “add_meta_box(blah blah blah)” in /wp-admin/ edit_form_advanced.php
To remove ‘Discussion’ and ‘Send Trackbacks’ from the edit_form_advanced.php you could use the following in a plugin:
WP3.0
<?php
add_action( 'admin_head', 'fewer_meta_boxes');
function fewer_meta_boxes() {
global $post_type;
remove_meta_box('commentstatusdiv', $post_type, 'normal');
remove_meta_box('trackbacksdiv', $post_type, 'normal');
}
?>
WP2.9.x
<?php
add_action( 'admin_head', 'fewer_meta_boxes');
function fewer_meta_boxes() {
remove_meta_box('commentstatusdiv', 'post_comment_status_meta_box', 'normal');
remove_meta_box('trackbacksdiv', 'post_trackback_meta_box', 'normal');
}
?>
Or just remove it for anyone not an admin..
<?php
/*
This code is based on WP 3.0, see code in post above for 2.9 example.
*/
add_action( 'admin_head-post-new.php', 'fewer_meta_boxes');
add_action( 'admin_head-post.php', 'fewer_meta_boxes');
function fewer_meta_boxes() {
global $post_type;
if( !current_user_can( 'manage_options' ) ) {
remove_meta_box('commentstatusdiv', $post_type, 'normal');
remove_meta_box('trackbacksdiv', $post_type, 'normal');
}
}
?>
Super, guys. Thanks for the help. I really appreciate it.
This is very, very helpful, thanks!
The only trouble I had is that I had to make the changes to the Thesis custom_function file because I have a multisite setup with each site using its own css and functions files. As soon as I change that file, every time I go to edit a post, it tells me that someone is editing it. Weird.