Changeset 23999 for trunk/wp-includes/plugin.php
- Timestamp:
- 04/16/2013 09:53:02 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/plugin.php
r23190 r23999 605 605 * 606 606 * When a plugin is activated, the action 'activate_PLUGINNAME' hook is 607 * activated. In the name of this hook, PLUGINNAME is replaced with the name of 608 * the plugin, including the optional subdirectory. For example, when the plugin 609 * is located in wp-content/plugins/sampleplugin/sample.php, then the name of 610 * this hook will become 'activate_sampleplugin/sample.php'. When the plugin 611 * consists of only one file and is (as by default) located at 607 * called. In the name of this hook, PLUGINNAME is replaced with the name 608 * of the plugin, including the optional subdirectory. For example, when the 609 * plugin is located in wp-content/plugins/sampleplugin/sample.php, then 610 * the name of this hook will become 'activate_sampleplugin/sample.php'. 611 * 612 * When the plugin consists of only one file and is (as by default) located at 612 613 * wp-content/plugins/sample.php the name of this hook will be 613 614 * 'activate_sample.php'. … … 629 630 * 630 631 * When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is 631 * deactivated. In the name of this hook, PLUGINNAME is replaced with the name632 * called. In the name of this hook, PLUGINNAME is replaced with the name 632 633 * of the plugin, including the optional subdirectory. For example, when the 633 634 * plugin is located in wp-content/plugins/sampleplugin/sample.php, then 634 * the name of this hook will become ' activate_sampleplugin/sample.php'.635 * the name of this hook will become 'deactivate_sampleplugin/sample.php'. 635 636 * 636 637 * When the plugin consists of only one file and is (as by default) located at 637 638 * wp-content/plugins/sample.php the name of this hook will be 638 * ' activate_sample.php'.639 * 'deactivate_sample.php'. 639 640 * 640 641 * @package WordPress … … 643 644 * 644 645 * @param string $file The filename of the plugin including the path. 645 * @param callback $function the function hooked to the ' activate_PLUGIN' action.646 * @param callback $function the function hooked to the 'deactivate_PLUGIN' action. 646 647 */ 647 648 function register_deactivation_hook($file, $function) {
Note: See TracChangeset
for help on using the changeset viewer.