PHPUnit tests for HTML output are fragile. Attribute order changes, a trailing semicolon, and suddenly tests fail — even though the browser renders the same thing. WordPress 6.9 adds assertEqualHTML() to WP_UnitTestCase. It compares HTML semantically, so only real differences cause failures.
Learn how to build a settings page for the new era of WordPress admin, based on React components and using the DataForm component’s config-driven approach.
Learn to build a smooth word-switching effect in WordPress by combining four key APIs: HTML API for markup transformation, Interactivity API for animations, Format API for editor controls, and JavaScript Modules for efficient code—all without external libraries.
This tutorial shows WordPress plugin developers how to add automated unit testing from setup to GitHub integration. Learn to catch bugs before users do, prevent regressions in stable code, and build confidence across different WordPress versions and configurations.
A practical guide on writing changelogs that build trust, reduce confusion, and show professionalism, helping you and your users stay confidently informed.
Refactor your multi-block plugin with a cleaner structure, support for all block types, and smarter registration, bundling, and asset handling.
Discover what content-only editing is, why it’s essential to enable it in all your custom WordPress blocks, and how to implement it effectively.
A walkthrough of how to make custom Block Binding sources customizable from the editor in WordPress 6.7.
A walkthrough of many tips, tricks, and techniques for using theme.json and style variations to their full extent.