[wp-trac] [WordPress Trac] #41346: Introduce a hook for individual plugin loaded

WordPress Trac noreply at wordpress.org
Wed Dec 12 12:31:27 UTC 2018


#41346: Introduce a hook for individual plugin loaded
------------------------------------+-----------------------------
 Reporter:  Rarst                   |       Owner:  SergeyBiryukov
     Type:  feature request         |      Status:  reviewing
 Priority:  normal                  |   Milestone:  5.1
Component:  Plugins                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  needs-patch needs-docs  |     Focuses:  performance
------------------------------------+-----------------------------

Comment (by Rarst):

 Replying to [comment:11 ChriCo]:
 > Replying to [comment:1 schlessera]:
 > >
 > > {{{#!php
 > > // snip ...
 > > do_action( "plugin_loaded_{$plugin_slug}", $plugin );
 > > }}}

 Please note that's not the current patch actually suggests, it's in fact
 close to your snippet. :) I would be against dynamic hook as well, they
 are a mess.

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


More information about the wp-trac mailing list