List all active plugins

Lists all active plugins in wordpress, may be handy if you run a few sites

function wp_list_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";
    }
}

wp_list_active_site_plugins();

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*