Hiding Ultimate Branding Tab

Is it possible to hide the Ultimate Branding tab from the dashboard – please view snapshot at http://www.cws.co/i4wp/UB_hide.png – Thank you.

  • Bill South
    • Flash Drive

    If you are looking to do this without all the bells and whistles of Admin Menu Editor, you can use a simple function.

    I made a 1 file plugin that had the function it, instead of using a theme’s functions.php file. I did this so it would still work if the client changed themes.

    <?php
    function remove_menus(){
    if (!current_user_can('administrator') && !is_admin()) {
    remove_menu_page( 'branding');
    }
    }
    add_action( 'admin_menu', 'remove_menus', 999); // make sure the priorty is high so it is not overided

    you can remove many admins menus also check the WordPress Codex Documentation

    You can also hide the plugin from the plugin page shown in this Blog Post

    Hope this helps someone :smiley:

  • Bill South
    • Flash Drive

    UPDATE

    This works better

    `function remove_menus(){

    $current_user = wp_get_current_user();

    if ($current_user->user_login !=’user_name’:wink: {

    remove_menu_page( ‘branding’:wink:;

    }

    }

    add_action( ‘admin_menu’, ‘remove_menus’, 999);’