I'm currently using toggle admin menu plugin http://wpmudevorg.wordpress.com/project/Menus
I've also disabled the light grey site admin bar in wp-config by uncommenting.
// Uncomment to disable the site admin bar
define( 'NOADMINBAR', 1 );
A dark grey bar remains with a drop down labeled "New Posts" by default. The drop-down includes "New Page" and "Upload" even though these pages have been disabled. I need to either remove the drop down entirely, or remove these two items from the list.
I also need to hide the "Custom Fields" section of the Add New Post section.
Now the only things left to hide are on the Add Post page... how do I hide custom fields and password this post?
this old plugin might be revamped by someone: http://txfx.net/code/wordpress/clutter-free/ unfortunately it does what you want but only on a per user basis.
more info here: http://ask.metafilter.com/76229/How-can-I-remove-items-from-Wordpresss-Write-SubPanel
Thanks for the links! This code will hide custom fields from the admin panel. The fields aren't disabled and could somehow (i.e. firebug) be re-enabled and/or manipulated. I wish there was a better solution!
<?php
add_action('admin_head', 'hide_custom_fields');
function hide_custom_fields()
{
echo "\n<!-- Hide Custom Fields --><style type='text/css'>\n<!--\n#postcustom { display: none !important; }\n-->\n</style>\n";
}
?>
function ds_toggle_metaboxes() {
remove_meta_box('postcustom', 'post', 'normal');
}
add_action('admin_head', 'ds_toggle_metaboxes');
BTW,
remove_meta_box('pagecustomdiv', 'page', 'normal');
Look for "add_meta_box" lines in the core files:
edit-page-form.php
edit-link-form.php
edit-form-advanced.php
Anywhere there's a "add_meta_box" you can plugin a corresponding "remove_meta_box".
Also, the Toggle Admin Menus plugin has recently been revised to hide the "Favorites" menu items as well.
http://mu.wordpress.org/forums/topic.php?id=11513
I may sit down soon and mash out a UI plugin to toggle all the metaboxes as a site option. I'd use it.
I'm playing with that code and not having a whole lot of success... That plugin sounds like it would be pretty unbelievable. I'll post back later with my findings.
New Plugin: Toggle Meta Boxes Sitewide
If you have http://wpmudevorg.wordpress.com/project/Menus , the side effect will be a ridiculously long SiteAdmin-->Options page.