Make WordPress Core


Ignore:
Timestamp:
09/18/2013 07:37:39 AM (11 years ago)
Author:
westi
Message:

Inline documentation for hooks in wp-admin/includes/plugin.php

See #25229 props dllh

File:
1 edited

Legend:

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

    r25272 r25474  
    541541
    542542        if ( ! $silent ) {
     543            /**
     544             * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false
     545             *
     546             * @since 3.0.2
     547             *
     548             * @param string $plugin     Basename of the plugin path from {@see activate_plugin()}
     549             * @param bool $network_wide Argument from {@see activate_plugin()}
     550             */
    543551            do_action( 'activate_plugin', $plugin, $network_wide );
     552
     553            /**
     554             * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false
     555             *
     556             * The action concatenates the 'activate_' prefix with the $plugin value passed to
     557             * activate_plugin() to create a dynamically named action.
     558             *
     559             * @since 3.0.2
     560             *
     561             * @param bool $network_wide Argument from {@see activate_plugin()}
     562             */
    544563            do_action( 'activate_' . $plugin, $network_wide );
    545564        }
     
    555574
    556575        if ( ! $silent ) {
     576            /**
     577             * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false
     578             *
     579             * @since 3.0.2
     580             *
     581             * @param string $plugin     Basename of the plugin path from {@see activate_plugin()}
     582             * @param bool $network_wide Argument from {@see activate_plugin()}
     583             */
    557584            do_action( 'activated_plugin', $plugin, $network_wide );
    558585        }
     
    595622
    596623        if ( ! $silent )
     624            /**
     625             * Fires for each plugin being deactivated in deactivate_plugins(), before deactivation
     626             * and when the $silent parameter is false.
     627             *
     628             * @since 3.3.2
     629             *
     630             * @param string $plugin     Basename of the plugin path from {@see activate_plugin()}
     631             * @param bool $network_deactivating True if $network_wide passed in {@see deactivate_plugin()}
     632             * is true and the plugin is active for the network.
     633             */
    597634            do_action( 'deactivate_plugin', $plugin, $network_deactivating );
    598635
     
    615652
    616653        if ( ! $silent ) {
     654            /**
     655             * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
     656             * and when the $silent parameter is false.
     657             *
     658             * The action concatenates the 'deactivate_' prefix with the plugin's basename
     659             * to create a dynamically named action.
     660             *
     661             * @since 3.3.2
     662             *
     663             * @param bool $network_deactivating True if $network_wide passed in {@see deactivate_plugin()}
     664             * is true and the plugin is active for the network.
     665             */
    617666            do_action( 'deactivate_' . $plugin, $network_deactivating );
     667
     668            /**
     669             * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
     670             * and when the $silent parameter is false.
     671             *
     672             * @since 3.3.2
     673             *
     674             * @param string $plugin             Basename of the plugin path from {@see activate_plugin()}
     675             * @param bool $network_deactivating True if $network_wide passed in {@see deactivate_plugin()}
     676             * is true and the plugin is active for the network.
     677             */
    618678            do_action( 'deactivated_plugin', $plugin, $network_deactivating );
    619679        }
     
    866926
    867927        add_action( 'uninstall_' . $file, $callable );
     928
     929        /**
     930         * Fires in uninstall_plugin() once the plugin has been uninstalled.
     931         *
     932         * The action concatenates the 'uninstall_' prefix with the basename of the
     933         * plugin passed to {@see uninstall_plugin()} to create a dynamically named action.
     934         *
     935         * @since 2.6.1
     936         */
    868937        do_action( 'uninstall_' . $file );
    869938    }
Note: See TracChangeset for help on using the changeset viewer.