WordPress.org

Make WordPress Core

Ticket #24097: 24097.diff

File 24097.diff, 1.4 KB (added by Caspie, 5 years ago)
  • wp-includes/plugin.php

     
    628628 * Set the deactivation hook for a plugin.
    629629 *
    630630 * When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is
    631  * deactivated. In the name of this hook, PLUGINNAME is replaced with the name
     631 * activated. In the name of this hook, PLUGINNAME is replaced with the name
    632632 * of the plugin, including the optional subdirectory. For example, when the
    633633 * 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'.
    635635 *
    636636 * When the plugin consists of only one file and is (as by default) located at
    637637 * wp-content/plugins/sample.php the name of this hook will be
    638  * 'activate_sample.php'.
     638 * 'deactivate_sample.php'.
    639639 *
    640640 * @package WordPress
    641641 * @subpackage Plugin
    642642 * @since 2.0
    643643 *
    644644 * @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.
    646646 */
    647647function register_deactivation_hook($file, $function) {
    648648        $file = plugin_basename($file);