# Set One Admin Color Scheme for Everyone

> Applies the same admin color scheme to all users and hides the color picker on the profile screen. Handy for telling staging and production apart.

- Type: PHP
- Runs: Admin only
- Category: [Admin](https://wpide.com/library/category/admin/)
- Tags: color-scheme, branding, profile
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/force-admin-color-scheme/

## Code

```php
add_filter( 'get_user_option_admin_color', function () {
    // Built-in schemes: fresh, light, modern, blue, coffee, ectoplasm, midnight, ocean, sunrise.
    return 'modern';
} );

add_action( 'admin_init', function () {
    remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
} );
```

## Notes

Change modern to any built-in scheme name.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Set One Admin Color Scheme for Everyone" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
