Skip to content

Instantly share code, notes, and snippets.

@felixtriller
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixtriller/80cc7505a41fc09a3069 to your computer and use it in GitHub Desktop.
Save felixtriller/80cc7505a41fc09a3069 to your computer and use it in GitHub Desktop.
parse page urls and status from WordPress dashboard
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