Warning: This function has been deprecated. Use activate_plugin() instead.

activate_sitewide_plugin() WordPress Function

The activate_sitewide_plugin() function is used to activate a plugin for all sites in a multisite installation. This function takes a plugin path and a network_wide boolean as arguments. If the network_wide boolean is set to true, the plugin will be activated for all sites on the network. If set to false, the plugin will only be activated for the current site.

activate_sitewide_plugin() #

Deprecated functionality for activating a network-only plugin.


Description

Top ↑

See also


Top ↑

Source

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

function activate_sitewide_plugin() {
	_deprecated_function( __FUNCTION__, '3.0.0', 'activate_plugin()' );
	return false;
}


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.