Changeset 46694
- Timestamp:
- 11/10/2019 11:03:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r46662 r46694 727 727 * @since 2.5.0 728 728 * 729 * @param string|array $plugins Single plugin or list of plugins to deactivate. 730 * @param bool $silent Prevent calling deactivation hooks. Default is false. 731 * @param mixed $network_wide Whether to deactivate the plugin for all sites in the network. 732 * A value of null (the default) will deactivate plugins for both the site and the network. 729 * @param string|string[] $plugins Single plugin or list of plugins to deactivate. 730 * @param bool $silent Prevent calling deactivation hooks. Default false. 731 * @param bool|null $network_wide Whether to deactivate the plugin for all sites in the network. 732 * A value of null will deactivate plugins for both the network 733 * and the current site. Multisite only. Default null. 733 734 */ 734 735 function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) { … … 759 760 * @param string $plugin Path to the plugin file relative to the plugins directory. 760 761 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 761 * or just the current site. Multisite only. Default isfalse.762 * or just the current site. Multisite only. Default false. 762 763 */ 763 764 do_action( 'deactivate_plugin', $plugin, $network_deactivating ); … … 798 799 * 799 800 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 800 * or just the current site. Multisite only. Default isfalse.801 * or just the current site. Multisite only. Default false. 801 802 */ 802 803 do_action( "deactivate_{$plugin}", $network_deactivating ); … … 811 812 * 812 813 * @param string $plugin Path to the plugin file relative to the plugins directory. 813 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network .814 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 814 815 * or just the current site. Multisite only. Default false. 815 816 */ … … 830 831 * 831 832 * When WP_Error is returned, it does not mean that one of the plugins had 832 * errors. It means that one or more of the plugin s file path wasinvalid.833 * errors. It means that one or more of the plugin file paths were invalid. 833 834 * 834 835 * The execution will be halted as soon as one of the plugins has an error. … … 836 837 * @since 2.6.0 837 838 * 838 * @param string|array $plugins Single plugin or list of plugins to activate. 839 * @param string $redirect Redirect to page after successful activation. 840 * @param bool $network_wide Whether to enable the plugin for all sites in the network. 841 * @param bool $silent Prevent calling activation hooks. Default is false. 839 * @param string|string[] $plugins Single plugin or list of plugins to activate. 840 * @param string $redirect Redirect to page after successful activation. 841 * @param bool $network_wide Whether to enable the plugin for all sites in the network. 842 * Default false. 843 * @param bool $silent Prevent calling activation hooks. Default false. 842 844 * @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation. 843 845 */
Note: See TracChangeset
for help on using the changeset viewer.