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;
}