What Is New in WordPress 6.5
WordPress 6.5, "Regina," is a significant release focused on refining the Site Editor and empowering developers with new APIs. It brings the long-awaited Interactivity API and Font Library directly into core, alongside numerous enhancements to the design tools.
| Category | Key Highlights |
|---|---|
| New Features | Interactivity API, Font Library, Data Views for patterns & templates, Background image in Group block |
| Developer APIs | wp_enqueue_block_style(), block_type_metadata filter,
WP_HTML_Tag_Processor improvements
|
| Design Tools | Link control improvements, new border, typography, and shadow controls, Outline view |
| Performance | Faster Block Bindings, Script loading strategy for view transition, Image loading
optimization |
| Accessibility | Improved List View, Better keyboard navigation, Enhanced descriptions |
What's the Big Deal with the New Interactivity API?
The Interactivity API is the headline feature for developers. It provides a standard, lightweight way to create frontend interactivity without heavy frameworks, reducing the JavaScript you need to write and maintain.
In practice, this means you can build features like image lightboxes, form toggles, or live content updates using primarily declarative HTML directives. The API handles the DOM updates efficiently, making it a game-changer for block and theme developers aiming for performant, dynamic sites.
You define your interactive regions with attributes like data-wp-interactive and use directives such
as data-wp-on--click to bind actions. The server-side processing happens through a new
@wordpress/interactivity package in core.
How Does the Font Library Change Theme Development?
The Font Library finally brings native font management to WordPress core. Users can now install, remove, and activate custom fonts globally from the Site Editor, a task that previously required a plugin or custom code.
This matters because it decouples fonts from themes. A user can switch themes without losing their chosen typography, and as a developer, you can rely on a standard interface for font handling instead of building your own solution for every project.
The library supports both uploading font files and adding from a collection of Google Fonts, all managed through a new UI within global styles.
What Performance Wins Should I Look For?
Performance improvements are subtle but meaningful. The Block Bindings API is now faster, and a new script loading strategy for the View Transition API optimizes how resources are fetched.
Image loading gets smarter with the addition of the fetchpriority attribute to the
wp_filter_content_tags() function, helping browsers prioritize above-the-fold images. For
developers, these tweaks mean your custom blocks and themes built with core tools will inherently be more
efficient.
Which New APIs Should Developers Explore First?
Beyond the Interactivity API, several new hooks and functions are worth integrating into your workflow. The
wp_enqueue_block_style() function allows for more granular loading of block-specific stylesheets,
improving performance.
The block_type_metadata filter lets you modify block type settings after registration, offering new
flexibility for dynamic block manipulation. The WP_HTML_Tag_Processor class also received upgrades,
making it a more powerful tool for safely parsing and modifying HTML content programmatically.
How is the Content Editing Experience Better?
The editing experience is more intuitive and powerful. Data Views provide a new grid or table layout for managing patterns and templates, making it easier to sort, filter, and search your content.
Design control gets a major upgrade with new options for borders, typography, and shadows on more blocks. The link control UI is now more consistent, and adding a background image to a Group block is finally a native feature. The new Outline view in the Site Editor gives you a high-level overview of your template structure at a glance.
FAQ
Is the Interactivity API a replacement for React or other JavaScript frameworks?
No, it's not
a replacement. It's a complementary standard for adding common, lightweight interactivity directly in HTML. For
complex, app-like experiences within the block editor, React is still the appropriate tool. The Interactivity
API is ideal for frontend interactions on the published site.
Do I need to rewrite my existing blocks to use the new APIs?
Absolutely not. All new APIs are
additive and backward compatible. Your existing blocks will continue to work without any changes. You can adopt
the Interactivity API or other new features in new projects or incrementally update existing ones as needed.
Can I use the Font Library to replace my current custom font solution?
Yes, that's the
primary use case. If you've been using a plugin or custom code to enqueue and manage fonts, you can now migrate
that functionality to the core Font Library. This provides users with a familiar interface and ensures better
compatibility with future WordPress updates.
What's the practical benefit of the `wp_enqueue_block_style()` function?
It allows for
conditional loading of CSS. Instead of loading a stylesheet for a block on every page, you can now enqueue it
only when the block is actually present in the content. This reduces unnecessary HTTP requests and improves page
loading performance.
Where can I find the official documentation for these new features?
The WordPress Developer
Blog is the best starting point. It contains in-depth articles on the Interactivity API and other developer changes. Always refer to these resources for accurate, detailed technical
information.