A persistent object cache either works or silently does not, and both look identical from the front end: the site is up, the pages render, and the queries…
3.0 moved order item data into its own tables and left the old access functions working, which means a query written against the old shape returns results and…
Registering a route under wp/v2 puts it in core’s namespace, where a future core route can collide with it and where nothing signals that it is yours. The…
The fifth argument to wp_enqueue_script() decides whether the tag goes in the head, where it blocks parsing, or before </body>, where it does not. The default is the…
The schema attached to a route looks like a description for humans. Core uses it to validate and sanitise the request before the callback runs, which means an…
The getter looks like ceremony over a property and is the entire point of the release: with the read going through a method, where the value comes from…
Code that must run regardless of what an administrator does in the plugins screen — a security header, a filter that fixes a broken upstream URL, an environment…
Adding a field to a core REST response means either filtering the prepared object, which is fragile, or registering the field properly so it appears in the schema…
An order, a refund and a subscription are all shop_order-ish posts and are not the same class, so code type-hinting WC_Order breaks the first time a refund arrives.…
The rewrite rules are computed once and stored in an option, so a newly registered post type or endpoint returns 404 until something regenerates them — and the…