Fix docs for the deactivate_$plugin
and deactivated_plugin
hooks.
Props wpsmith for the original patch. Fixes #27189 git-svn-id: https://develop.svn.wordpress.org/trunk@27491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b005551879
commit
6308a3c93d
@ -657,11 +657,11 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
|||||||
|
|
||||||
if ( ! $silent ) {
|
if ( ! $silent ) {
|
||||||
/**
|
/**
|
||||||
* Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
|
* Fires before a specific plugin is deactivated.
|
||||||
* and when the $silent parameter is false.
|
|
||||||
*
|
*
|
||||||
* The action concatenates the 'deactivate_' prefix with the plugin's basename
|
* The dynamic portion of the hook name, $plugin. refers to the plugin basename.
|
||||||
* to create a dynamically-named action.
|
*
|
||||||
|
* The hook only first when the $silent parameter is false.
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
@ -671,14 +671,15 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
|||||||
do_action( 'deactivate_' . $plugin, $network_deactivating );
|
do_action( 'deactivate_' . $plugin, $network_deactivating );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
|
* Fires before a plugin is deactivated.
|
||||||
* and when the $silent parameter is false.
|
*
|
||||||
|
* The hook only fies when the $silent parameter is false.
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
*
|
*
|
||||||
* @param string $plugin Plugin path to main plugin file with plugin data.
|
* @param string $plugin Plugin basename.
|
||||||
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
||||||
* or just the current site. Multisite only. Default is false.
|
* or just the current site. Multisite only. Default false.
|
||||||
*/
|
*/
|
||||||
do_action( 'deactivated_plugin', $plugin, $network_deactivating );
|
do_action( 'deactivated_plugin', $plugin, $network_deactivating );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user