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