deactivate_sitewide_plugin

Deprecated functionality for deactivating a network-only plugin.

Description

deactivate_sitewide_plugin( (bool) $plugin = false ); 

Parameters (1)

0. $plugin — Optional. (bool) => false
The plugin.

Usage

  1. if ( !function_exists( 'deactivate_sitewide_plugin' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/ms-deprecated.php'; 
  3.  
  4. // The plugin. 
  5. $plugin = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = deactivate_sitewide_plugin($plugin); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/ms-deprecated.php  
  1. function deactivate_sitewide_plugin( $plugin = false ) { 
  2. _deprecated_function(__FUNCTION__, '3.0.0', 'deactivate_plugin()' );