@wordpress/core-data package simplifies access to WordPress entities through the REST API. It provides selectors and actions for fetching, editing, and saving WordPress data like posts, pages, users, and more.
Installation
What is an Entity?
An entity represents a data source (like posts, pages, or users). Each entity has:- kind - Entity group (e.g.,
root,postType) - name - Entity identifier (e.g.,
post,page,user) - Records - Individual items in the entity