Skip to content

Consider 'template' and 'template_lock' support #842

Description

@tw2113

'template'
(array) Array of blocks to use as the default initial state for an editor session. Each item should be an array containing block name and optional attributes.
'template_lock'
(string|false) Whether the block template should be locked if $template is set.
If set to 'all', the user is unable to insert new blocks, move existing blocks and delete blocks.
If set to 'insert', the user is able to move existing blocks but is unable to insert new blocks and delete blocks. Default false.

https://wordpress.org/support/topic/feature-request-cpt-block-templates/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions