<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq" -->

---
title: Extending the Inspector and Site Editor screens in...
description: WordPress 7.2 adds two new APIs for extending screens built with DataViews and DataForm. The Entity Fields API registers, updates, and removes fields on an...
canonical: https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Extending the Inspector and Site Editor screens in WordPress 7.2 | daily.dev
og:description: WordPress 7.2 adds two new APIs for extending screens built with DataViews and DataForm. The Entity Fields API registers, updates, and removes fields on an...
og:url: https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq
og:image: https://api.daily.dev/og/posts/heJPZerrq.png
og:image:alt: Extending the Inspector and Site Editor screens in WordPress 7.2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Extending the Inspector and Site Editor screens in WordPress 7.2

**[Make WordPress Core](https://daily.dev/sources/wordpresscore)** · 3 min read · 1 upvotes · 0 comments

## Summary

WordPress 7.2 adds two new APIs for extending screens built with DataViews and DataForm. The Entity Fields API registers, updates, and removes fields on an entity like a post type, while the Entity Actions API registers and removes actions. Fields and actions register once and appear everywhere the entity shows up, including Site Editor screens, Quick Edit, and the Post Editor Inspector, which now runs on DataForm. A plugin declares the serializable parts in PHP and the JavaScript behavior in a script module keyed by field or action id. An example shows adding a 'Subtitle' field stored in demo_subtitle post meta, and wp_update_entity_fields() lets a field's JavaScript parts be swapped, which is how an AI plugin adds a 'Generate excerpt' button to the core excerpt field.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://make.wordpress.org/core/2026/11/24/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2>

## Questions this post answers

### How do I add a custom field to the WordPress Pages screen and inspector in WordPress 7.2?

Use the new Entity Fields API introduced in WordPress 7.2. Register the field server-side in PHP with an id, type, and label (e.g. a 'demo_subtitle' text field stored in post meta), then provide a script module with the JavaScript getValue/setValue logic keyed by the field id, and add it to the view config filter from WordPress 7.1 to make it visible on the Pages screen and form.

_Developers extending the WordPress editor can follow Entity Fields API changes like this on daily.dev._

### How do I remove or change a built-in WordPress inspector field like 'Time to read'?

The 'Time to read' row is the post-content-info field, and it can be removed for specific post types using the Entity Fields API, for example removing it for every post type except posts and pages. To modify rather than remove a field, wp_update_entity_fields() swaps in a new script module for just the JavaScript parts while keeping the rest, which is how the AI plugin adds a 'Generate excerpt' button to the core excerpt field.

_Plugin authors customizing the post editor inspector can track API changes like this on daily.dev._

## Similar posts on daily.dev

- [DataViews, DataForm, et al. in WordPress 7.0](https://daily.dev/posts/dataviews-dataform-et-al-in-wordpress-7-0-g3jyqoxny) · Make WordPress Core · 2 upvotes · 0 comments
- [Call for testing: DataForm editor inspector](https://daily.dev/posts/call-for-testing-dataform-editor-inspector-1gvpafwcl) · Make WordPress Core · 1 upvotes · 0 comments
- [How to Add WordPress Custom Post Type Fields](https://daily.dev/posts/how-to-add-wordpress-custom-post-type-fields-6uycqm78t) · ACF · 2 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#wordpress](https://daily.dev/tags/wordpress)

[View this post on daily.dev](https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Extending the Inspector and Site Editor screens in WordPress 7.2","url":"https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq"},"datePublished":"2026-11-24T15:35:08.789Z","dateModified":"2026-11-24T15:35:33.974Z","description":"WordPress 7.2 adds two new APIs for extending screens built with DataViews and DataForm. The Entity Fields API registers, updates, and removes fields on an...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Make WordPress Core","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Make WordPress Core","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/892d1a79e30e4e8a911b5726c6fb1a06","url":"https://daily.dev/sources/wordpresscore"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"php,wordpress","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Make WordPress Core","item":"https://daily.dev/sources/wordpresscore"},{"@type":"ListItem","position":3,"name":"Extending the Inspector and Site Editor screens in WordPress 7.2"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/extending-the-inspector-and-site-editor-screens-in-wordpress-7-2-hejpzerrq#faq","mainEntity":[{"@type":"Question","name":"How do I add a custom field to the WordPress Pages screen and inspector in WordPress 7.2?","acceptedAnswer":{"@type":"Answer","text":"Use the new Entity Fields API introduced in WordPress 7.2. Register the field server-side in PHP with an id, type, and label (e.g. a 'demo_subtitle' text field stored in post meta), then provide a script module with the JavaScript getValue/setValue logic keyed by the field id, and add it to the view config filter from WordPress 7.1 to make it visible on the Pages screen and form. Developers extending the WordPress editor can follow Entity Fields API changes like this on daily.dev."}},{"@type":"Question","name":"How do I remove or change a built-in WordPress inspector field like 'Time to read'?","acceptedAnswer":{"@type":"Answer","text":"The 'Time to read' row is the post-content-info field, and it can be removed for specific post types using the Entity Fields API, for example removing it for every post type except posts and pages. To modify rather than remove a field, wp_update_entity_fields() swaps in a new script module for just the JavaScript parts while keeping the rest, which is how the AI plugin adds a 'Generate excerpt' button to the core excerpt field. Plugin authors customizing the post editor inspector can track API changes like this on daily.dev."}}]}
```

