Best approach when modifying the Media Manager

I am trying to edit the Media Manager to allow the selection of a new option in the “Link to” select field. This Backbone template is currently defined in media-template.php <label class=”setting”> <span><?php _e(‘Link To’); ?></span> <select class=”link-to” data-setting=”link” <# if ( data.userSettings ) { #> data-user-setting=”urlbutton” <# } #>> <option value=”post” <# if ( … Read more

How to hook in and modify the new revisions UI (3.6+)?

Let’s say I want to add some post_meta into the “new” revisions UI. I’m saving some meta on revisions only, and want to display it on this screen. Normally, I’d open up wp-admin/revisions.php look for some hooks and code away. But the revisions page is all done with Backbone. I don’t know Backbone (totally willing … Read more

Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work

I’ve added to the normal WordPress gallery popup (when clicking “Add Media” in the WordPress editor), in order to allow my custom gallery type to be selected (which interacts with / uses the main WordPress gallery shortcode). I’m able to select my custom gallery types (I have two) or “Native” (which is the normal WordPress … Read more