Ollie Block Academy

Dealing with Post Meta

Meta in the Store vs. Meta in the Database

Post meta changes through editPost modify the editor store immediately but don’t update the database until the post is saved. This creates a distinction between edited values and persisted values.

getEditedPostAttribute accesses the store version of meta, showing unsaved changes. The database and REST API endpoints only reflect saved values until the post update completes.

Understanding this distinction prevents confusion when meta appears changed in blocks but doesn’t show in database queries or REST API calls until the post save operation completes.

Back to: Ollie Block Academy > Dealing with Post Meta