deactivate_plugins


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

Parameters:
  • (string|string[]) plugins Single plugin or list of plugins to deactivate.
  • (bool) silent Prevent calling deactivation hooks. Default false.
  • (bool|null) network_wide Whether to deactivate the plugin for all sites in the network. A value of null will deactivate plugins for both the network and the current site. Multisite only. Default null.
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