A site where the new editor is right for pages and wrong for a heavily customised product type needs the decision per type rather than globally. This is…
Registering a post type in functions.php ties the site’s content model to its appearance, so changing the theme deletes the URLs. Must-use plugins load before regular ones and…
Querying orders with WP_Query couples the code to orders being posts, which is the thing WooCommerce spent 3.0 making replaceable. It returns order objects rather than posts, so…
Adding data to an existing REST response by filtering the prepared object is tempting and is the wrong hook — there is a registration function that also documents…
Disabling the REST API with a filter that returns an error for unauthenticated requests was a common hardening step, and on 5.0 it breaks the editor completely. The…