Created
November 18, 2013 14:09
-
-
Save jayarjo/7528355 to your computer and use it in GitHub Desktop.
wp: trigger media manager and default to "uploaded to this post" tab.
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
<button class="button" onclick="wp.media.editor.open(this);jQuery('select.attachment-filters [value=uploaded]').attr( 'selected', true ).parent().trigger('change');return false;">Manage Media...</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment