You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current data-core documentation explains how to use selectors like getEntityRecords and getEntityRecord, but it does not document how entities themselves are defined and configured.
Hey @Anuj-Rathore24, thanks for your interest in this issue! 🍪🍪🍪 If you have any questions, do not hesitate to ask them in our #docs Slack channel. Enjoy and happy contributing ❤️
changed the title [-]Docs: Add detailed entity configuration reference to data-core documentation[/-][+][DevHub] Docs: Add detailed entity configuration reference to data-core documentation[/+]on Jan 26, 2026
Activity
Anuj-Rathore24 commentedon Jan 21, 2026
/assign
github-actions commentedon Jan 21, 2026
Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.
github-actions commentedon Jan 21, 2026
Hey @Anuj-Rathore24, thanks for your interest in this issue! 🍪🍪🍪
If you have any questions, do not hesitate to ask them in our #docs Slack channel.
Enjoy and happy contributing ❤️
Anuj-Rathore24 commentedon Jan 21, 2026
WordPress Data Store – Entity Configuration & Usage
Entity configs define how WordPress talks to REST API endpoints, normalizes responses, and stores them in the centralized state tree.
Basic Shape of an Entity
Every entity follows this general structure:
Properties
Label
Meaning - Human-readable name for the entity.
name
Meaning - The internal identifier of the entity.
This is the value used in selectors like getEntityRecords.
All types of names:
Example:
kind
Meaning - Namespace for grouping entities.
In core
Almost all core entities use:
key
Meaning - The field that uniquely identifies a single record.
Example:
"slug""slug""name""stylesheet""plugin""slug"baseURL
Meaning - The REST API endpoint for the entity.
Example:
baseURLParams
Meaning - Default query parameters appended to every request.
"view""edit""embed"Example:
plural
Meaning - Plural form used internally for state storage.
Optional Advanced Properties
supportsPagination
Meaning - Indicates whether the REST endpoint supports pagination.
Used by
Entities that support it
rawAttributes
Meaning - Fields that should not be deeply normalized or transformed.
Example:
transientEdits
Meaning - Marks fields that support temporary local edits before saving.
Used for
This allows editing blocks in memory before persisting.
getTitle
Meaning - Custom function to derive a display title from a record.
Example:
getRevisionsUrl
Meaning - Custom function to build the revisions endpoint.
Example:
_unstableBase
meaning - A special internal entity that represents global site-level information.
What it returns?
Anuj-Rathore24 commentedon Jan 22, 2026
Real-World Examples of Using Entities
1. Fetching All Users for an Author Selector
What happens internally?
2. Getting a Single Post Type Configuration
What happens internally?
3. Building a Media Library Grid
4. Fetching All Taxonomies for a Post Type
5. Getting Site Settings (Special Base Entity)
What happens internally?
6. Fetch menu items
7. Reading Global Styles Variations
8. Inspecting Active Theme Info
9. Fetching Plugins for a Plugin Manager UI
[-]Docs: Add detailed entity configuration reference to data-core documentation[/-][+][DevHub] Docs: Add detailed entity configuration reference to data-core documentation[/+]