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

Top ↑

See also


Top ↑

Source

File: wp-admin/includes/ms-deprecated.php

function deactivate_sitewide_plugin( $plugin = false ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' );
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.