Skip to content

Instantly share code, notes, and snippets.

@scarstens
Created April 2, 2013 23:09
Show Gist options
  • Save scarstens/5297041 to your computer and use it in GitHub Desktop.
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.
jQuery('#file_category').val(4); jQuery('#file_languages\\[\\]').val('en'); jQuery('#file_requirements\\[\\]').val('pdfread');jQuery('#updatefile').submit();
@scarstens
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment