Saving Post Meta Field Revisions in WordPress

If your plugin or theme uses custom post meta fields then you may want to store revisions to these fields when a post revision is saved. It’s easy to do.

For each of our meta fields, we’ll need to do three things:

  1. Store a revision of the meta field when a post is saved
  2. Revert to the correct revision of the meta field when a post is reverted
  3. Optionally, display the meta field on the revisions screen

Read moreSaving Post Meta Field Revisions in WordPress

WordPress Plugin: Pretty Media

Update: This functionality now exists in WordPress itself. There’s no longer any need for this plugin. I’ve just published a small plugin which makes the Media screen in WordPress prettier using just CSS. You can download/pull/fork it on GitHub.

Access Your Desktop Development Environment from Your Mobile Device

It’s possible to get an iPhone, iPad, or Android device to access a local web server running on your development machine. All you need is an HTTP proxy such as Charles Proxy running on your development machine. Once that’s running: Make sure your device is connected to the same network as your development machine. Go into the Settings -> Wi-Fi menu and find the HTTP proxy settings. On Android, this means a long-press on your Wi-Fi network (Modify Settings, then Show advanced settings). On iOS this means pressing the (i) icon next to your Wi-Fi network. Switch your proxy over to … Read more

Basic Authentication with the WordPress HTTP API

Basic Authentication (or BasicAuth) is not natively handled with the WordPress HTTP API. This means when you’re using functions such as wp_remote_get() and wp_remote_post() there’s no immediately obvious way to send Basic Authentication headers with your request. It would be great to pass username and password parameters to these functions, but it’s not there. Fear not though, it’s really easy. Here’s how: $args = array( ‘headers’ => array( ‘Authorization’ => ‘Basic ‘ . base64_encode( YOUR_USERNAME . ‘:’ . YOUR_PASSWORD ) ) ); wp_remote_request( $url, $args ); That’s it. The correct authentication headers will then be sent with your request (after … Read more

WordPress Plugin: Feed Thumbnails

Latest version: – Released Description Installation Download This plugin requires WordPress version or later. Version ZIP file from Any comments, questions, queries, suggestions, complaints, etc, please leave a comment!

Twitter Bookmarklet: View the Whole Conversation

Update: For those who aren’t aware, when Twitter was originally launched it had no concept of replies, threading, or viewing conversations. The functionality below was written in this era and now, of course, it’s redundant and no longer works. Do you ever view a Twitter update (or a “tweet”) which is part of a conversation and wish there was an easy way to view the entire conversation? It’s not easy to do. (We’re talking about the web interface here, it’s undoubtedly easy for those who use Twitter clients.) This is why I’ve written the Twitter Conversation Bookmarklet. Installation Drag the … Read more

WordPress Plugin: Disable Theme Updates

Latest version: – Released All the information for this plugin can be found over at the WordPress Plugin Directory: Disable WordPress Theme Updates. Don’t forget you can also disable WordPress core updates and disable WordPress plugin updates too.

WordPress Plugin: User Switching

Latest version: – Released : Description FAQ Download This plugin requires WordPress version  or later. Download the plugin on Any comments, questions, queries, suggestions, complaints, etc, please leave a comment!

WordPress Plugin: Instapaper ‘Read Later’ Links

Latest version: – Released : Description This plugin allows you to display Instapaper ‘Read later’ links next to each post on your blog just like on Give Me Something To Read. You can either automatically insert the links adjacent to your blog entries, or you can just use the template tag to insert the links wherever you like. What the hell is Instapaper? From Instapaper is a fast, easy, free tool to save web pages for reading later. When you find something you want to read, but you don’t have time now, you click ‘Read Later’. When you do … Read more