首页 WordPress函数大全 deactivate_plugins()

deactivate_plugins()

2020-05-01 / 3313阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

deactivate_plugins( string|string[] $plugins, bool $silent = false, bool|null $network_wide = null )

Deactivate a single plugin or multiple plugins.

描述

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

参数

$plugins

(string|string[])
(Required)
Single plugin or list of plugins to deactivate.

$silent

(bool)
(Optional)
Prevent calling deactivation hooks.

Default value: false

$network_wide

(bool|null)
(Optional)
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>Default value: null

大家谈论
    我的见解