Created
April 2, 2013 23:09
-
-
Save scarstens/5297041 to your computer and use it in GitHub Desktop.
Jquery code to use in chrome conolse to automaticly assign and submit a category and meta data selection to wpfilebase plugin since there is no bulk update tool.
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('#file_category').val(4); jQuery('#file_languages\\[\\]').val('en'); jQuery('#file_requirements\\[\\]').val('pdfread');jQuery('#updatefile').submit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change the items insite val() functions to whatever makes sense to you. categories have ID's that must be used so you must inpsect the page to determine the values you want to create. I have not yet tried to "select multiple values" though I'm sure thats possible too. If you have a solution for that, feel free to post.