Return to Snippet

Revision: 68929
at March 19, 2015 23:50 by ellegaarddk


Initial Code
function wpse_54742_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";
    }
}

wpse_54742_active_site_plugins();

Initial URL

                                

Initial Description
Show a list of active plugins on current site.
I use it for diplaying in ManageWP and transfer to documentation

Initial Title
Wordpress: Show all active plugins

Initial Tags
php, wordpress

Initial Language
PHP