Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
else 
  load gray

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

share|improve this question

1 Answer 1

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

 
discard

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.