I'd like to modify the properties of a registered style(or script - same applies) before it's been loaded.
Right now i'm trying to modify a registered style just before it gets enqueued, so i can point it at another file(ie. change the src
property, maybe others to). Looking for some ideas specifically about where to hook on and modify the $wp_styles
object so that the enqueue fire as normal, but with my changes to the registered style's properties.
I'm making an admin color scheme and thought it would be awesome if i could rewrite/tweak the existing enqueue, instead of adding an additional request to every page(ie. colors-fresh.css + my stylesheet - i'd rather have one request, why include the original stylesheet only to redefine every style in another)...
Unregister the style and register my own? - I'd then have to unregister both color schemes(classic/fresh) when i'd prefer to simply hook on and tweak the styles object before the enqueue fires.
I'm pretty sure it's possible, but simply lacking the brain power to wrap my head around it right now.. (been wired in too long)..
Any suggestions welcome.... ;)