首页 WordPress函数大全 is_plugin_active_for_network()

is_plugin_active_for_network()

2020-05-02 / 4045阅 / 悠然

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

is_plugin_active_for_network( string $plugin )

Determines whether the plugin is active for the entire network.

描述

Only plugins installed in the plugins/ folder can be active.

Plugins in the mu-plugins/ folder can’t be "activated," so this function will return false for those plugins.

For more information> Conditional Tags article in the Theme Developer Handbook.

参数

$plugin

(string)
(Required)
Path to the plugin file relative to the plugins directory.

返回

(bool) True if active for the network, otherwise false.

大家谈论
    我的见解