WooCommerce 2.0 moved order line items out of a serialised _order_items post meta value and into two dedicated tables. Anything that read that key directly — a sales…
Before adding a caching plugin to hold one expensive query, WordPress already has the API: set_transient() and get_transient(), with a time to live and no configuration. It uses…
Scripts and styles are printed by wp_head itself, at priority 9. A callback hooked to wp_head at the default priority of 10 therefore runs after the queue has…
Every request WordPress serves opens with one query that reads every option flagged autoload = yes and unserialises the lot into memory. That is a reasonable design for…
WordPress 3.5 replaced the uploader with a Backbone application, and the hook every custom meta box was built on went with it. The old pattern opened ThickBox and…
Asking for every post is one argument away, which is why it survives review: it works on the development database, and the development database has forty products in…