WordPress.org

Support

Support » Plugins and Hacks » Adminimize » [Resolved] [Plugin: Adminimize] Suggestion for next update

[Resolved] [Plugin: Adminimize] Suggestion for next update

  • Tom

    @jeffreeeeey

    When disabling the dashboard Colour options using this plugin, it doesn’t completely remove the setting from view in user dashboard/ profile.

    I’ve not looked in to the code of this plugin so not sure how it’s trying to hide that part, but anyway- I found a work-around.

    I un-ticked the hide colour option in Adminimize settings, then added the following to my themes functions.php file:

    //LETS REMOVE COLOUR-CHANGE FIELD FROM USER PROFILE IN DASHBOARD
    
    function admin_del_options() {
       global $_wp_admin_css_colors;
       $_wp_admin_css_colors = 0;
    }
    
    add_action('admin_head', 'admin_del_options');

    That field has now COMPLETELY removed from user profiles.

    Hope you can implement this to the next update.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Adminimize] Suggestion for next update’ is closed to new replies.
Skip to toolbar