I’m developing a plugin that adds a tab to the media uploader to add external videos to the media library via oembed. Everything works as expected but I need...
I am using the latest version of the REST API plugin in a project and I’ve added my routes to a separate namespace (as recommended in the documentation). The...
I’m getting started with a project that is making use of Backbone and the WP REST API, but I”m having a little trouble. Using the built in API JS...
I’ve noticed that since WP 3.5 that we now have the Backbone.js and Underscore.js libraries included. The new Media Modal uses Underscore templates and I was wondering how would...
How could I add button next to “edit image” button in “Attachment Details” This is the location I would like to add button, Do you have any recommend? 1...
Here’s yet another question in regard to the new(ish) 3.5 “Add Media” popup and how to customize it! What I’m trying to do I’m attempting to do four main...
I’m using the following piece of code to open a media frame when clicking a link with a data-attachment_id attribute. This attribute holds the id of an attachment that...
In the above screenshot we are in the media library with grid mode active. I want to add a custom class depending on the attachment filter wp_prepare_attachment_for_js. For example...
Though I have logged in, I cannot create a post on frontend. WordPress always return 401 Unauthorized response. I have dumped $_COOKIE to make sure logged-in cookie was set...
I’m using the following JS code to open a wp.media window to allow users to select images and videos for a gallery. Everything is working as expected, but I’m...