[wp-trac] [WordPress Trac] #11308: Handling plugin dependencies

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 28 22:17:35 UTC 2010


#11308: Handling plugin dependencies
-------------------------+--------------------------------------------------
 Reporter:  apeatling    |       Owner:  westi  
     Type:  enhancement  |      Status:  new    
 Priority:  normal       |   Milestone:  3.0    
Component:  Plugins      |     Version:         
 Severity:  normal       |    Keywords:  plugins
-------------------------+--------------------------------------------------

Comment(by markjaquith):

 Plugin:

 {{{
 function my_plugin_prefix_init() {
     do_action( 'my_plugin_prefix_init' );
 }
 add_action( 'plugins_loaded', 'my_plugin_prefix_init' );
 }}}

 Dependent plugin:

 {{{
 function dependent_prefix_init() {
     // add all bootstrap stuff here
     // no code should run "live"
 }
 add_action( 'my_plugin_prefix_init', 'dependent_prefix_init' );
 }}}

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


More information about the wp-trac mailing list