1

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.

1 Answer 1

2

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).

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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