Opened 8 years ago
Last modified 6 years ago
#43742 new enhancement
Add $_wp_admin_css_colors variable to front-end
| Reported by: | danieltj | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: | css |
Description
I've developed a plugin that uses the admin colour scheme functionality.
When a colour scheme is registered (using wp_admin_css_color), it's added to the $_wp_admin_css_colors variable. This is only accessible within the dashboard though so if you try and use that variable on the front-end, it returns null (doesn't exist).
Can this be made accessible on the front-end too?
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@danieltj Thanks for the ticket!
I imagine you want the admin toolbar to use the same color scheme when viewing the live site as it does in the back-end.
Would do you have another reason and/or location to re-purpose the admin color scheme?