[wp-trac] [WordPress Trac] #36391: Create a hook to handle plugin CSS?

WordPress Trac noreply at wordpress.org
Tue Apr 5 14:15:30 UTC 2016


#36391: Create a hook to handle plugin CSS?
-----------------------------+------------------------------
 Reporter:  CarlosRios       |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Script Loader    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  performance
-----------------------------+------------------------------

Comment (by ghera74):

 Thanks for your answer Carlos. Actually, it would be the first time for me
 too :-)
 Let's see if someone else finds it interesting, I will be happy to
 contribute!

 Replying to [comment:2 CarlosRios]:
 > I've thought about it for a while and think it could be really useful :)
 Not sure how we could get this going since I've never contributed to WP
 core though. I'm also not too sure on what the benefits and risks would be
 either. I've thought that it would be really awesome to also be able to
 generate page specific css files. So that could be done with a separate
 hook that supplies the object's ID as an argument, and allows you to add
 css based on the ID.
 >
 > Replying to [comment:1 ghera74]:
 > > Hi! I like your idea and it made me thinking about the problem of
 changing the plugins style in my Wordpress projects.
 > > The common solutions are modifying the plugin directly, bad for future
 update, or add changes to the theme style file.
 > > It would be interesting to have a hook for add this changes with a
 function like your proposal.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36391#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list