Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




is_plugin_active_for_network [ WordPress Function ]

is_plugin_active_for_network ( $plugin )
Parameters:
  • (string) $plugin Base plugin path from plugins directory.
Returns:
  • (bool) True, if active for the network, otherwise false.
Defined at:



Check whether the plugin is active for the entire network.

Source


<?php
function is_plugin_active_for_network$plugin ) {
    if ( !
is_multisite() )
        return 
false;

    
$plugins get_site_option'active_sitewide_plugins');
    if ( isset(
$plugins[$plugin]) )
        return 
true;

    return 
false;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics