Skip to content

Instantly share code, notes, and snippets.

@JodiWarren
Last active March 29, 2018 12:44
Show Gist options
  • Save JodiWarren/6ad375af53816112decbf0c85743197e to your computer and use it in GitHub Desktop.
Save JodiWarren/6ad375af53816112decbf0c85743197e to your computer and use it in GitHub Desktop.
Get a list of plugin names from a WordPress plugins admin page. You can change the `[data-plugin]` selector to `.active` or `.inactive` to get a subset. Just pop it into the dev tools console.
jQuery.map(jQuery('[data-plugin]').map((index, element) => $(element).find('strong').first().html()), value => [value]).join('\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment