WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want implement theme option which will have two css files.

Example, if current admin set their profile to blue color I want load blue css for the theme options.

if (current-value-css-admin)
  load blue
  load gray

Let me know how do I get current data for the wp admin color.

share|improve this question
up vote 2 down vote accepted

This can be retrieved with $color = get_user_option('admin_color');, just don't forget to check for empty return and default to something in that case.

Native color schemes are called fresh (grey) and classic (blue).

share|improve this answer
Awesome! Thanks Rast. – haha Feb 2 '11 at 20:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.