WordPress.org

Ready to get started?Download WordPress

Forums

Adminimize
[resolved] Suggestion for next update (3 posts)

  1. Tom
    Member
    Posted 3 years ago #

    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

  2. Frank
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for this snippet, i iclude this in the next verison

  3. Tom
    Member
    Posted 3 years ago #

    No problem- nice to be able to give something back :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags