The WordPress Transients API

Sooner or later, we all write something that could make use of some caching.  I've seen several plugins store cache data using the options API -- though this will work, it's probably not the right place to do this.  Instead, you can easily use the WordPress transient API.  Unlike the options API, the Transients API gives you the option of an expiration.  Perfect for caching a query that needs updating, but doesn't need run every time your code runs.  Here's how it works: Quick … [Read more...]

Though custom post types have a lot of label configuration options, the one glaring omission was the in-field "Enter Title Here" text that appears in the title field. Since the "title" area of a custom post type may not necessarily used for a "Title", changing this will reduce confusion and make better sense from a UX point-of-view. Well, guess what? There's a filter for that! Quick breakdown: This gets our current admin screen attributes -- we'll use this to make sure we're … [Read more...]