How to Remove Admin Color Scheme Options in WordPress

How to Remove Admin Color Scheme Options in WordPress

So maybe you like the grey option for the WordPress admin color scheme but you think the blue is hideous and you hope that none of your users have set it to blue and forget how to change it back. Or maybe you’ve created your own custom color scheme for the admin and you don’t want it changed. Here’s a quick code snippet that will remove the option from Your Profile >> Personal Options.

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

Add this to your functions.php file:
{code type=php}
remove_action( ‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’ );

Just click save and you’ll see that the admin color scheme options are no longer available. Quick and easy, right? Many thanks to @Nacin for sending us this tip!

Tags: