[wp-trac] [WordPress Trac] #11308: Handling plugin dependencies
WordPress Trac
wp-trac at lists.automattic.com
Fri May 7 21:53:05 UTC 2010
#11308: Handling plugin dependencies
-------------------------+--------------------------------------------------
Reporter: apeatling | Owner: westi
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version:
Severity: normal | Resolution: worksforme
Keywords: plugins |
-------------------------+--------------------------------------------------
Comment(by scribu):
Replying to [comment:7 markjaquith]:
I was about to claim that you can't use register_activation_hook() with
that approach. Then I figured this should work:
Dependent plugin:
{{{
function dependent_plugin_activation() {
if ( !did_action('my_plugin_prefix_init') )
return;
// activation code
}
register_activation_hook(__FILE__, 'dependent_plugin_activation');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11308#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list