Last active
June 11, 2018 13:00
-
-
Save d4mation/bf267f91c96b85bc6b2a4b6d9f5c0f6f to your computer and use it in GitHub Desktop.
Multisite Plugin Stats List Per Site
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
// Multisite Plugin Stats plugin shows a list of sites per Plugin in a Hidden List. | |
var plugins = []; | |
jQuery( '.plugin_site_list' ).each( function( index, list ) { | |
if ( jQuery( list ).find( 'li:contains("SITE NAME")' ).length > 0 ) { | |
plugins.push( jQuery( list ).prev().text() ); | |
} | |
} ); | |
console.log( plugins ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment