Skip to content

Instantly share code, notes, and snippets.

@rajasajidmanzoor
Created January 20, 2022 10:51
Show Gist options
  • Save rajasajidmanzoor/43bb771baa96d3a2c0917dcaa3be6502 to your computer and use it in GitHub Desktop.
Save rajasajidmanzoor/43bb771baa96d3a2c0917dcaa3be6502 to your computer and use it in GitHub Desktop.
/*
* A quick snippedt to find plugin and plugin versions in Wordpress
* To User this, open Wordpress Plugins page.
* Go to inspect element and click on console.
* Copy and paste below code and press enter.
* Now you will have a list of all plugins at the end of the page.
*/
jQuery('.wp-list-table.plugins tbody tr:not(".plugin-update-tr")').each(function(){
var name = jQuery('td.plugin-title strong', this).html();
var versions = jQuery('td.column-description .plugin-version-author-uri', this).html();
var v_split = versions.split("|");
var version = v_split[0];
$html = '';
$html+= name+','+version+'<br/>';
jQuery( '.tablenav.bottom' ).after( function(){ return $html; } );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment