Block API: Allow blocks to specify attributes that map to site options #2759
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Milestone
Related: #2754
At the moment a block's attributes can come from two places: sourced from HTML, or serialized as JSON in HTML comments.
Edit: As of #2740, it is also possible to source attributes from post meta (see documentation)
We want to allow attributes that can be retrieved and saved as site options. Such attributes won't exist in the HTML, meaning they rely on server rendering through
get_option()
.The text was updated successfully, but these errors were encountered: