WordPress 6.9 for developers: the Abilities API, notes and on-demand styles
WordPress 6.9 (December 2025) brought visible editor features, notes on blocks for editorial feedback and new blocks such as Accordion, and two developer-facing changes worth planning for: the Abilities API, a registry where plugins describe what they can do in a machine-readable way, and loading block styles on demand in classic themes. The release after it, WordPress 7.0, followed in May 2026.
Problem: A plugin team wants to know which parts of 6.9 affect their code: how to expose plugin functions to automation and AI tools without a custom REST API for each, and whether classic themes behave differently now that block CSS is loaded differently.
Solution: Register the plugin’s main operations as abilities with an input and output schema and a permission callback, check classic themes for CSS that relied on all block styles being loaded on every page, and use notes in the editor for review workflows instead of external tools.
The Abilities API
An ability is a named, described operation with a JSON schema for its input and output, a permission check and an execution callback. Other code, including AI assistants and automation tools, can discover and call abilities without knowing the plugin’s internals.
add_action( 'wp_abilities_api_init', function (): void {
wp_register_ability( 'ha-booking/create-booking', array(
'label' => __( 'Create booking', 'textdomain' ),
'description' => __( 'Books a time slot for a customer.', 'textdomain' ),
'category' => 'ha-booking',
'input_schema' => array(
'type' => 'object',
'properties' => array(
'slot' => array( 'type' => 'string', 'format' => 'date-time' ),
'email' => array( 'type' => 'string', 'format' => 'email' ),
),
'required' => array( 'slot', 'email' ),
),
'output_schema' => array( 'type' => 'integer', 'description' => 'Booking ID' ),
'permission_callback' => fn() => current_user_can( 'edit_posts' ),
'execute_callback' => fn( array $input ) => ha_create_booking( $input['slot'], $input['email'] ),
) );
} );
The registry validates input against the schema before the callback runs, and the permission callback is mandatory, the same discipline as for REST routes. Abilities can be listed and executed through the REST API as well. Abilities need a category, registered on its own hook (wp_abilities_api_categories_init) with wp_register_ability_category(). The API is new, and its details are still evolving; check the current developer notes before building on it.
On-demand block styles in classic themes
Block themes have loaded the CSS of each core block only when the block is on the page since 5.8. With 6.9, classic themes get the same behavior for block styles, through an output buffer that collects the styles of the blocks actually rendered. Pages get lighter, but a classic theme whose own CSS relied on a core block stylesheet being present everywhere (for example styling .wp-block-button__link in a menu that is not a block) may lose those styles on pages without that block. Check key templates after updating, and enqueue the needed block style explicitly where necessary with wp_enqueue_style( 'wp-block-button' ).
Notes on blocks
Editors can attach notes to individual blocks in the post editor, reply to them and resolve them, a built-in review workflow similar to comments in a word processor. Notes are stored as comments of a special type on the post, so plugins that count or list comments should filter by comment type and not assume every comment is a public one. Editorial statuses for the same workflow: custom post statuses for editorial workflows.
Smaller items
- New blocks: Accordion and a Terms Query block for listing taxonomy terms.
- The command palette is available on all admin screens, not only in the editors.
- The Interactivity API received further additions for client-side navigation: the Interactivity API.
NOTE: As with every major release, test plugins with WP_DEBUG on a staging copy before updating production; most problems with 6.9 updates came from classic themes and from plugins that filter comment queries. The previous release: WordPress 6.8 for developers.