Last active
August 29, 2015 14:21
-
-
Save felixtriller/80cc7505a41fc09a3069 to your computer and use it in GitHub Desktop.
parse page urls and status from WordPress dashboard
This file contains 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
jQuery('#the-list').find('tr').each(function() { | |
var _this = jQuery(this); | |
var url = _this.find('.view').find('a').attr('href'); | |
var status = _this.attr('class').match(/status[\w-]*\b/)[0].replace('status-', 'Status: '); | |
console.log(url + ' (' + status + ')'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment