How To Add the “Add Media” Button When Using wp.editor.initialize()

February 17th, 2023

This is just a quick note for anyone who runs into the same issue. If you use wp.editor.initialize() to dynamically create an instance of the WordPress visual editor, the editor will be missing the “Add Media” button by default. To fix that, you need to do two things: 1. Add mediaButtons: true to the setting […]

Continue Reading...

WordPress Hook Order

November 11th, 2022

I’ve made a site that shows actions and filters executed during different WordPress requests. Why? When I’m writing a plugin, I sometimes need to know not just what a hook does, but also when it runs in relation to other hooks. The official WordPress documentation has a list of common actions, but it’s out of […]

Continue Reading...

Plugin Updates: Securing Download Links

March 19th, 2013

Ever since the release of the Plugin Update Checker library, one of the most common questions asked has been this: “How can I secure my download links so that only users who have purchased my plugin can download an update?” In this post I’ll try to answer that question in the context of using WP […]

Continue Reading...

WordPress Update Server

March 12th, 2013

It’s been a long time coming, but I’ve finally released an external update API server for WordPress plugins and themes. Check it out on GitHub. This is the server component to my plugin update checker and theme update checker client libraries. Features Provide updates for private or commercial plugins and themes. From the users’ perspective, the […]

Continue Reading...

How to Pre-Select a Category for a New Post

November 20th, 2012

Lets say you have a category called “X”, and you want to create a link which when clicked will take the user to the “Add New Post” screen with the “X” category already selected. This could be used to simplify posting for non-technical users, or even as a way to implement “poor-man’s custom post types” […]

Continue Reading...