Fix several copy/paste errors in register_deactivation_hook() description. props Caspie. fixes #24097.
git-svn-id: https://develop.svn.wordpress.org/trunk@23999 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
18d6bf6198
commit
891333e1cb
@ -604,11 +604,12 @@ function plugin_dir_url( $file ) {
|
|||||||
* Set the activation hook for a plugin.
|
* Set the activation hook for a plugin.
|
||||||
*
|
*
|
||||||
* When a plugin is activated, the action 'activate_PLUGINNAME' hook is
|
* When a plugin is activated, the action 'activate_PLUGINNAME' hook is
|
||||||
* activated. In the name of this hook, PLUGINNAME is replaced with the name of
|
* called. In the name of this hook, PLUGINNAME is replaced with the name
|
||||||
* the plugin, including the optional subdirectory. For example, when the plugin
|
* of the plugin, including the optional subdirectory. For example, when the
|
||||||
* is located in wp-content/plugins/sampleplugin/sample.php, then the name of
|
* plugin is located in wp-content/plugins/sampleplugin/sample.php, then
|
||||||
* this hook will become 'activate_sampleplugin/sample.php'. When the plugin
|
* the name of this hook will become 'activate_sampleplugin/sample.php'.
|
||||||
* consists of only one file and is (as by default) located at
|
*
|
||||||
|
* When the plugin consists of only one file and is (as by default) located at
|
||||||
* wp-content/plugins/sample.php the name of this hook will be
|
* wp-content/plugins/sample.php the name of this hook will be
|
||||||
* 'activate_sample.php'.
|
* 'activate_sample.php'.
|
||||||
*
|
*
|
||||||
@ -628,21 +629,21 @@ function register_activation_hook($file, $function) {
|
|||||||
* Set the deactivation hook for a plugin.
|
* Set the deactivation hook for a plugin.
|
||||||
*
|
*
|
||||||
* When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is
|
* When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is
|
||||||
* deactivated. In the name of this hook, PLUGINNAME is replaced with the name
|
* called. In the name of this hook, PLUGINNAME is replaced with the name
|
||||||
* of the plugin, including the optional subdirectory. For example, when the
|
* of the plugin, including the optional subdirectory. For example, when the
|
||||||
* plugin is located in wp-content/plugins/sampleplugin/sample.php, then
|
* plugin is located in wp-content/plugins/sampleplugin/sample.php, then
|
||||||
* the name of this hook will become 'activate_sampleplugin/sample.php'.
|
* the name of this hook will become 'deactivate_sampleplugin/sample.php'.
|
||||||
*
|
*
|
||||||
* When the plugin consists of only one file and is (as by default) located at
|
* When the plugin consists of only one file and is (as by default) located at
|
||||||
* wp-content/plugins/sample.php the name of this hook will be
|
* wp-content/plugins/sample.php the name of this hook will be
|
||||||
* 'activate_sample.php'.
|
* 'deactivate_sample.php'.
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Plugin
|
* @subpackage Plugin
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*
|
*
|
||||||
* @param string $file The filename of the plugin including the path.
|
* @param string $file The filename of the plugin including the path.
|
||||||
* @param callback $function the function hooked to the 'activate_PLUGIN' action.
|
* @param callback $function the function hooked to the 'deactivate_PLUGIN' action.
|
||||||
*/
|
*/
|
||||||
function register_deactivation_hook($file, $function) {
|
function register_deactivation_hook($file, $function) {
|
||||||
$file = plugin_basename($file);
|
$file = plugin_basename($file);
|
||||||
|
Loading…
Reference in New Issue
Block a user