Ticket #24097: 24097.diff
File 24097.diff, 1.4 KB (added by , 11 years ago) |
---|
-
wp-includes/plugin.php
628 628 * Set the deactivation hook for a plugin. 629 629 * 630 630 * When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is 631 * deactivated. In the name of this hook, PLUGINNAME is replaced with the name631 * activated. In the name of this hook, PLUGINNAME is replaced with the name 632 632 * of the plugin, including the optional subdirectory. For example, when the 633 633 * plugin is located in wp-content/plugins/sampleplugin/sample.php, then 634 * the name of this hook will become ' activate_sampleplugin/sample.php'.634 * the name of this hook will become 'deactivate_sampleplugin/sample.php'. 635 635 * 636 636 * When the plugin consists of only one file and is (as by default) located at 637 637 * wp-content/plugins/sample.php the name of this hook will be 638 * ' activate_sample.php'.638 * 'deactivate_sample.php'. 639 639 * 640 640 * @package WordPress 641 641 * @subpackage Plugin 642 642 * @since 2.0 643 643 * 644 644 * @param string $file The filename of the plugin including the path. 645 * @param callback $function the function hooked to the ' activate_PLUGIN' action.645 * @param callback $function the function hooked to the 'deactivate_PLUGIN' action. 646 646 */ 647 647 function register_deactivation_hook($file, $function) { 648 648 $file = plugin_basename($file);