WordPress.org

Make WordPress Core

Changeset 27491


Ignore:
Timestamp:
03/10/2014 09:33:54 PM (7 years ago)
Author:
DrewAPicture
Message:

Fix docs for the deactivate_$plugin and deactivated_plugin hooks.

Props wpsmith for the original patch.
Fixes #27189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r27482 r27491  
    658658        if ( ! $silent ) {
    659659            /**
    660              * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
    661              * and when the $silent parameter is false.
     660             * Fires before a specific plugin is deactivated.
    662661             *
    663              * The action concatenates the 'deactivate_' prefix with the plugin's basename
    664              * to create a dynamically-named action.
     662             * The dynamic portion of the hook name, $plugin. refers to the plugin basename.
     663             *
     664             * The hook only first when the $silent parameter is false.
    665665             *
    666666             * @since 2.0.0
     
    672672
    673673            /**
    674              * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
    675              * and when the $silent parameter is false.
     674             * Fires before a plugin is deactivated.
     675             *
     676             * The hook only fies when the $silent parameter is false.
    676677             *
    677678             * @since 2.9.0
    678679             *
    679              * @param string $plugin               Plugin path to main plugin file with plugin data.
     680             * @param string $plugin               Plugin basename.
    680681             * @param bool   $network_deactivating Whether the plugin is deactivated for all sites in the network
    681              *                                     or just the current site. Multisite only. Default is false.
     682             *                                     or just the current site. Multisite only. Default false.
    682683             */
    683684            do_action( 'deactivated_plugin', $plugin, $network_deactivating );
Note: See TracChangeset for help on using the changeset viewer.