Skip to content

Instantly share code, notes, and snippets.

@joseluis
Forked from tillkruss/force-color-scheme.php
Created December 16, 2013 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseluis/7985718 to your computer and use it in GitHub Desktop.
Save joseluis/7985718 to your computer and use it in GitHub Desktop.
<?php
add_action( 'admin_init', function() {
// remove the color scheme picker
remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
// force all users to use the "Ectoplasm" color scheme
add_filter( 'get_user_option_admin_color', function() {
return 'ectoplasm';
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment