Created
January 20, 2022 10:51
-
-
Save rajasajidmanzoor/43bb771baa96d3a2c0917dcaa3be6502 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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