Hey,
Is it possible to get the colors from the color manager using php? Basically what I’m trying to to is a custom shortcode that will print a particular color from the color manager. The shortcode I can manage, but I’m not sure how to get the colors from the manager using php code.
Thanks!
Hey there,
Thanks for writing in! I believe you’re looking for this https://code.tutsplus.com/articles/how-to-use-wordpress-color-picker-api--wp-33067
Hope this helps!
Actually, I’m looking to access the colors chosen in the color manager. Not the Wordpress Color Picker
Hey @magikweb,
Regretfully, there is no way to get the values. It could be technically possible but this would be outside the scope of our support.
I can give you a tip or a starting point though. The colors are stored in the wp_options table with cornerstone_color_items as the option name. The colors are stored as serialized data so you will need a way to get the value from the database and read the data.
Hope that helps.
Alright, it actually does help.
Thanks alot for your time!
Glad we were able to help 
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.