Skip to content

Instantly share code, notes, and snippets.

@willthemoor
Created April 16, 2014 18:35
Show Gist options
  • Save willthemoor/10918209 to your computer and use it in GitHub Desktop.
Save willthemoor/10918209 to your computer and use it in GitHub Desktop.
Get a list of your WP Plugins
// Run this in your browser's JS console while on the plugins page of WP Admin
// Helpful when sharing active list with a plugin developer to debug potential conflicts
// This will print out all plugins and indicate which are inactive.
// If you want a list of active only, click on 'active' first in the WP Admin
jQuery('.plugin-title').each(function () {
var $t = jQuery(this),
name = $t.find('strong').text(),
version = $t.next('td').find('.plugin-description').next('div').text().split(' | '),
activeState = $t.find('.deactivate').length > 0 ? '' : ' (inactive)';
console.log(name + " - " + version[0] + activeState);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment