Created
August 9, 2015 09:32
-
-
Save goliver79/31992c16919842ab336c to your computer and use it in GitHub Desktop.
[WORDPRESS] Show all 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
<?php | |
function wpr_active_site_plugins() { | |
$the_plugs = get_option('active_plugins'); | |
foreach($the_plugs as $key => $value) { | |
$string = explode('/',$value); // Folder name will be displayed | |
echo $string[0] ."\n"; | |
} | |
} | |
wpr_active_site_plugins(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment