wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Remove admin color scheme picker from profile

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the admin color scheme picker from the profile page.

snippet :  PHPcopy
if(is_admin()){
  remove_action("admin_color_scheme_picker", "admin_color_scheme_picker");
}

Did you like this post? If so please share it with your friends. Thanks!

  • http://twitter.com/abaloo Andrew Brown

    Excellent, thanks :) Let’s bomb that old blue look!

    • http://wpsnipp.com Kevin Chard

      No problem Andrew glad to hear you like the wordpress snippet!

  • http://www.facebook.com/zackcello Zack Clark

    Great, thanks! I wanted the option removed for subscribers, too, so I did this:

    if ( array( ‘is_admin()’, ‘is_subscriber()’ ) ) {
    remove_action(“admin_color_scheme_picker”, “admin_color_scheme_picker”);
    }

  • jamzth

    Also, remove the if statement to remove the Picker for everybody. In conduction with this hook, you can add the following to set a default scheme that is to your liking:

    //Set Default Color Scheme
    add_filter(‘get_user_option_admin_color’, ‘change_admin_color’);
    function change_admin_color($result) {
    return ‘ocean’;
    }

    Just in case, anybody is interested. Thanks so much for this post! It helped a bunch!

jqsnipp.com | we just launched jquery snippets website