Allow block attributes/functionality in a template to be locked/removed #18913
Labels
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When creating a template via PHP CPT (or other methods) I Would like to be able to set default content eg. text/values for attributes
And
to be able to control options by setting defaults and removing options
eg.
be able to set the heading level in core/heading
be able to remove the ability to set h1 in core/heading
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to part of the template array
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
This might be posable via JS but would need a way to target a CPT template set
or we could create a complete set of custom blocks but this requires duplicate code (not DRY) and ongoing maintenance
If I am creating a complex page layout with several headers and paragraphs I would to be-able set h2 for the fist and h3 for rest all from the create CPT PHP function
The text was updated successfully, but these errors were encountered: