deactivate_plugins


deactivate_plugins ( $plugins, $silent = false, $network_wide = null )

Parameters:
  • (string|array) $plugins Single plugin or list of plugins to deactivate.
  • (bool) $silent Prevent calling deactivation hooks. Default is false.
  • (mixed) $network_wide Whether to deactivate the plugin for all sites in the network. A value of null (the default) will deactivate plugins for both the site and the network.
Defined at:

Description

Deactivate a single plugin or multiple plugins.

The deactivation hook is disabled by the plugin upgrader by using the $silent parameter.

Related Functions

activate_plugins, activate_plugin, validate_active_plugins, deactivate_sitewide_plugin, delete_plugins

Top Google Results

User discussions

wpseek mobile