[wp-trac] [WordPress Trac] #23180: Introduce get_plugin_part

WordPress Trac noreply at wordpress.org
Fri Jan 11 19:13:54 UTC 2013


#23180: Introduce get_plugin_part
-----------------------------+------------------------------
 Reporter:  wonderboymusic   |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
-----------------------------+------------------------------

Comment (by johnbillion):

 Some possible improvements:

  * Make the `$plugin` parameter the last parameter of the function, make
 it optional, and default it to the base plugin directory of the current
 file.
  * Add `$plugin` to the parameters passed to the `get_plugin_part_{$slug}`
 hook. Maybe even change it to `get_plugin_part_{$plugin}_{$slug}`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23180#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list