Auto Preload/add (and lock) a block when creating a new page?
-
I have created a “Testimonial Block” – a copy paste of the ACF tutorial here: (block.json approach)
https://www.advancedcustomfields.com/resources/create-your-first-acf-block/It works fine and when added manually, it appears on frontend.
QUESTION / OBJECTIVE
– When I create a new page OR when a custom template is selected in the backend, i’m looking to do the following:
–> Automatically (by code) preload/add the “Testimonial Block” (or conceptually any other block) (preferable in locked state) to the Gutenberg editorIs this somehow possible?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.