Gutenberg Blocks – Attributes from comment delimiter or from HTML?
Say I have some block that I want rendered dynamically. That leads to questions:
- For dynamic blocks I take it we have to guarantee that the attributes are in the JSON in the comments delimiter?
- Endpoints: Here is where I am really confused. For dynamic block rendering we are supposed to specify a PHP callback. Is that to be called by a restAPI endpoint (in which case do we have to set show_in_rest to true for dynamic blocks?) or is there a separate mechanism?
Just looking for some clarification on these points.
0block-editor, customization 3 years 2019-12-07T14:13:36-05:00 2019-12-07T14:13:36-05:00 0 Answers 87 views 0
Leave an answer