The MU forums have moved to WordPress.org

Things that still need to be hidden in wpmu 2.7 (10 posts)

  1. mdgross
    Member
    Posted 16 years ago #

    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.

  2. mdgross
    Member
    Posted 16 years ago #

    Now the only things left to hide are on the Add Post page... how do I hide custom fields and password this post?

  3. mdgross
    Member
    Posted 16 years ago #

  4. mdgross
    Member
    Posted 16 years ago #


  5. Ovidiu
    Member
    Posted 16 years ago #

    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

  6. mdgross
    Member
    Posted 16 years ago #

    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";
    }
    
    ?>
  7. dsader
    Member
    Posted 16 years ago #

    function ds_toggle_metaboxes() {
    	remove_meta_box('postcustom', 'post', 'normal');
    }
    add_action('admin_head', 'ds_toggle_metaboxes');
  8. dsader
    Member
    Posted 16 years ago #

    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".

  9. dsader
    Member
    Posted 16 years ago #

    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.

  10. mdgross
    Member
    Posted 16 years ago #

    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.

  11. dsader
    Member
    Posted 16 years ago #

    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.

About this Topic