Created
November 4, 2014 05:15
-
-
Save ooooak/3e94021254f08e680092 to your computer and use it in GitHub Desktop.
list all wordpress active plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$all_plugins = get_option(); | |
$active_plugins = get_option('active_plugins'); | |
foreach ($active_plugins as $plugin){ | |
if (is_plugin_active_for_network($plugin)){ | |
// plugin is network activated | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment