WordPress hack: Show all active plugins

WordPress hack: Show all active plugins

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!!

The post WordPress hack: Show all active plugins appeared first on WPRecipes.

What’s My SEO Score?

Enter the URL of any landing page or blog article and see how optimized it is for one keyword or phrase.

Wordpress Expert
Rating

Leave a Reply