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.

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 downloads.wordpress.org Any comments, questions, queries, suggestions, complaints, etc, please leave a comment!

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 WordPress.org. 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.com: 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

WordPress Plugin: Plugin Info

Latest version: – Released Description This plugin provides a simple way of displaying up-to-date information about specific plugins hosted on the WordPress Plugin Directory in your blog posts and pages. It is intended for plugin authors who want to display details of their own plugins from the WP Plugin Directory on their blog and want those details to remain up to date. It’s also useful for bloggers who may blog about plugins and would like the details in their blog posts to remain up to date. Er, what? You want to blog about a particular plugin on your blog and … Read more