Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/register_post_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
class register_post_type extends Shared\Base {
public const TEMPLATE_LOCK_ALL = 'all';
public const TEMPLATE_LOCK_INSERT = 'insert';
public const TEMPLATE_LOCK_CONTENT_ONLY = 'contentOnly';
public const TEMPLATE_LOCK_FALSE = false;

/**
Expand Down Expand Up @@ -350,7 +351,8 @@ class register_post_type extends Shared\Base {
* 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
* - If set to 'insert', the user is able to move existing blocks but is unable to insert new blocks and delete blocks.
* - If set to 'contentOnly', the user is only able to edit the content of existing blocks.
*
* Default false.
*
Expand Down