DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

For maintenance or any other purposes, you might want to be able to know what plugins are currently active on a specific WordPress install. Here’s a handy snippet to get a list of active plugins in a matter of seconds.

Simply paste this code where you want to display the active plugin list. Once saved, active plugins will be displayed.

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();

Thanks to Snipplr for the tip!!

Tags

Leave a Comment

Your email address will not be published. Required fields are marked *