Skip to content

Instantly share code, notes, and snippets.

@sftsk
Created August 18, 2017 08:37
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 sftsk/18602b5d4310d70841be34bf711ebf80 to your computer and use it in GitHub Desktop.
Save sftsk/18602b5d4310d70841be34bf711ebf80 to your computer and use it in GitHub Desktop.
Extractor for Polylang translations
var attrText = "attr_de,attr_it\n";
jQuery('.wp-list-table.widefat.fixed.striped.stringstranslations tbody tr').each(function () {
attrText += jQuery('td[data-colname="Zeichenfolge"]', jQuery(this)).clone().children().remove().end().text() + ',' + jQuery(':text', jQuery(this)).val() + "\n";
});
console.log(attrText);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment