[wp-trac] Re: [WordPress Trac] #4389: Improve plugin activate and
deactivate hooks
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 1 21:28:09 GMT 2007
#4389: Improve plugin activate and deactivate hooks
--------------------------+-------------------------------------------------
Reporter: Otto42 | Owner: anonymous
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Optimization | Version:
Severity: major | Resolution: invalid
Keywords: |
--------------------------+-------------------------------------------------
Changes (by markjaquith):
* status: new => closed
* resolution: => invalid
* milestone: 2.4 =>
Comment:
We have API for this. You're not supposed to use the hooks directly.
{{{
register_activation_hook(__FILE__, 'your_activation_function');
}}}
By using {{{__FILE__}}}, you ensure that it will work no matter what name
is given to the plugin.
Please re-open if this doesn't address your concern.
--
Ticket URL: <http://trac.wordpress.org/ticket/4389#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list