EP_Config::is_network PHP Метод

is_network() публичный Метод

Determines whether plugin is network activated or just on the local site.
С версии: 1.8
public is_network ( string $plugin ) : boolean
$plugin string the plugin base name.
Результат boolean True if network activated or false
    public function is_network($plugin)
    {
        $plugins = get_site_option('active_sitewide_plugins');
        if (is_multisite() && isset($plugins[$plugin])) {
            return true;
        }
        return false;
    }