Skip to content

HomeBlog

WordPress 7.2 RC4 leaves a week to test the Entity Fields API

WordPress 7.2 RC4 arrived on 1 December 2026 with the final release due on 8 December. The DataForm inspector, the Entity Fields and Actions APIs and the Abilities API changes all touch plugin code, so this is the build to test on staging.

8 min read
𝕏in

WordPress 7.2 Release Candidate 4 was published on 1 December 2026, and the final release is scheduled for 8 December 2026. If you maintain a plugin or theme, this is the build to test against before the release goes out, on a staging site rather than anything that serves traffic.

The release moves the editor inspector onto DataForm, adds an Entity Fields API and an Entity Actions API for extending it, ships three read-only abilities, and changes how the Abilities API checks permissions and prepares input. Each of those can interact with code you already ship.

RC4 patches the inspector and Abilities API

According to the RC4 announcement, this candidate fixes undo in Rich Text, cursor placement on iOS, block highlighting, media previews and the handling of translation updates. It also brings back the default editor styles for classic themes and tightens permissions on Notes and reactions.

More relevant to extenders, RC4 carries fixes to the DataForm-based block inspector, the Abilities API and the Entity Fields API. The inspector and the Entity Fields API are new in 7.2 and the Abilities API changed in this cycle, so a plugin that passed on RC3 deserves another run on RC4.

The announcement asks plugin authors to finish testing, set the Tested up to line in their readme to 7.2, and report compatibility problems in the alpha/beta support forum.

You can get the candidate through the WordPress Beta Tester plugin ("Bleeding edge" channel, "Beta/RC Only" stream), the RC4 zip, WordPress Playground in the browser, or WP-CLI:

wp core update --version=7.2-RC4

DataForm inspector drops the experimental excerpt slot

From 7.2 the inspector in both the post editor and the site editor is rendered by DataForm. Every setting is a field, the same field definitions that Quick Edit uses, fetched from the server for each post type. That gives plugins one API for both screens in place of DOM manipulation to add or hide a setting.

Most existing extension points survive. PluginDocumentSettingPanel and PluginPostStatusInfo fills still render. removeEditorPanel and the panel toggles under Preferences still hide the matching settings. The editor.PostFeaturedImage, editor.PostFeaturedImage.imageSize and editor.MediaUpload filters still apply to the featured image field, though only in the post editor and not in Quick Edit.

Two things break. The wp.editPost.__experimentalPluginPostExcerpt slot, deprecated since 6.6, no longer renders at all because the excerpt is now a field rather than a panel; the inspector dev note suggests moving that UI into a PluginDocumentSettingPanel or a custom field. And any CSS or script that targets the old panels' class names or markup will not match the new inspector.

Entity fields need a view config filter

The two APIs are described in the Entity Fields and Actions dev note. A field or action is registered once and then appears everywhere the entity shows up: the Site Editor list screens such as Pages and Templates, Quick Edit, and the new inspector.

Both follow one pattern. PHP declares the serializable parts (id, label, type) and names a script module. That module default-exports the JavaScript parts, keyed by id: how to read and write a value for a field, or what a callback does for an action.

APIInit hookFunctions
Fieldswp_entity_fields_api_initwp_register_entity_fields(), wp_update_entity_fields(), wp_unregister_entity_fields(), wp_get_registered_entity_fields()
Actionswp_entity_actions_api_initwp_register_entity_actions(), wp_unregister_entity_actions()

A minimal field backed by post meta looks like this on the PHP side, once the meta and the script module are registered on init:

add_action( 'wp_entity_fields_api_init', function () {
    wp_register_entity_fields(
        'acme-subtitle',   // source
        'postType',        // entity kind
        'page',            // entity name
        array(
            array(
                'id'    => 'acme_subtitle',
                'type'  => 'text',
                'label' => __( 'Subtitle', 'acme-subtitle' ),
            ),
        ),
        'acme-subtitle'    // script module with the JS parts
    );
} );
// subtitle.js
export default {
    acme_subtitle: {
        getValue: ( { item } ) => item.meta?.acme_subtitle ?? '',
        setValue: ( { value } ) => ( { meta: { acme_subtitle: value } } ),
    },
};

Registering a field makes it available, not visible. To show it, use the view config filter that 7.1 added, for example get_entity_view_config_posttype_page, and merge the field id into default_view.fields for the list and form.fields for Quick Edit and the inspector.

Core's own fields can be removed or altered the same way. wp_unregister_entity_fields() drops the post-content-info field (the "Time to read" row) per post type, and wp_update_entity_fields() swaps individual JavaScript parts for ones from another script module; the dev note says the AI plugin uses this to add a generate button to the core excerpt field.

Actions carry an isEligible check and a callback that receives the items and the data registry, with supportsBulk for multi-select. Set context to list to keep an action out of the inspector menu, or supply a RenderModal component with a modalHeader instead of a callback.

show_in_abilities defaults to false for post types and settings

WordPress 6.9 shipped the Abilities API with three abilities covering the site, the current user and the environment. The core abilities dev note adds core/content-query, core/users-query and core/settings-get in 7.2, all read-only, with write abilities planned for later releases.

The two query abilities share an input shape: where for filters, fields for the columns to return, and pagination with page and per_page (default 10, maximum 100). For content, where.type is mandatory and the other filters are ids, slugs, status, author and parent. Users filter by ids, slugs, usernames, roles and has_published_posts. Every filter is an exact match; there is no text search.

Permissions are baked into the results. Without a status filter only published posts come back, unless the query names ids or slugs. Raw title, excerpt and content are returned only for posts the caller can edit, and email and roles only for the caller's own account or users they can edit. core/settings-get requires manage_options and accepts fields or a group of general, writing, reading or discussion.

Only posts, pages and a set of core settings are exposed by default. A custom post type or plugin setting opts in through a new show_in_abilities argument on register_post_type() and register_setting(). It defaults to false and is not inherited from public or show_in_rest. Register on init; a setting registered only on admin_init or rest_api_init may be missed. The note also warns against exposing settings that hold secrets such as API keys.

Ability callers get HTTP 400 when sanitization fails

The Abilities API changes note adds a required_capabilities registration argument that takes a list of capability strings. Each is checked with current_user_can() before any permission_callback runs, and if the list covers every call the callback can be omitted. Plugins that support older WordPress versions must keep their callbacks, since omitting one requires 7.2.

Input handling is now centralized in WP_Ability::prepare_input(), which normalizes, validates and then sanitizes against the schema before the permission and execute callbacks see the value. Two behaviors change. A number schema turns an integer like 10 into the float 10.0 in direct PHP calls, so callbacks that test is_int() need an integer schema instead. And a sanitization failure now returns ability_invalid_input (HTTP 400 over REST) and stops execution, where it previously fell back to the raw input.

check_permissions() does not prepare input itself. Code that calls it directly must call prepare_input() first and bail on a WP_Error. The REST controller's sanitize_input_for_ability() is deprecated and now returns input unchanged.

The third change is JSON shape. An empty PHP array encodes as [] even when the schema says object. The REST layer and the AI Client now run results through wp_prepare_json_value_for_client(), which emits {} where the output schema declares an object. A direct execute() call still returns the raw callback result, so a custom transport has to apply the helper before encoding.

Checks to finish before the 8 December release

  • Open the inspector for each post type you register. Confirm your PluginDocumentSettingPanel fills render and that any panel you hide with removeEditorPanel stays hidden in the post editor and site editor inspector.
  • Search your code for __experimentalPluginPostExcerpt and for CSS selectors that target the old inspector panels. Both stop working in 7.2.
  • If you add settings to the inspector by DOM manipulation, try moving them to wp_register_entity_fields() and a view config filter.
  • For registered abilities, check callbacks for is_int() on number schemas, add required_capabilities where one capability covers every call, and make sure any consumer of an object-typed result accepts {}.
  • Decide which custom post types and settings should carry show_in_abilities, and keep API keys out of it.
  • Update Tested up to to 7.2 and file anything broken in the alpha/beta forum before the 8 December release.

Hatamoto is an open-source CMS written in Go: one binary and Postgres serve the site, the admin and the API, and plugins run in a WebAssembly sandbox. If you build sites on WordPress, see how it compares or give Hatamoto a try.

Discussion

Leave a comment

(never shown)
Comments with links are reviewed before they appear.

0 comments

    Run it on your own server.

    Open source, one Go binary and Postgres. AI analytics start counting from the first request.

    curl -fsSL https://hatamoto.dev/install.sh | sudo sh