Warning: This function has been deprecated. Use deactivate_plugin() instead.
deactivate_sitewide_plugin() WordPress Function
The deactivate_sitewide_plugin() function allows you to deactivate a plugin for all sites on a network from a single site. This function takes two parameters: the plugin file to be deactivated and a boolean value indicating whether to deactivate the plugin for all sites on the network or just the current site. If the second parameter is set to true, the plugin will be deactivated for all sites on the network.
deactivate_sitewide_plugin( $plugin = false ) #
Deprecated functionality for deactivating a network-only plugin.
Description
See also
Source
File: wp-admin/includes/ms-deprecated.php
function deactivate_sitewide_plugin( $plugin = false ) { _deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |