Skip to content

Commit

Permalink
Document template_lock=noContent for CPTs (#43977)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored and ockham committed Sep 19, 2022
1 parent 6d76c1b commit d263f74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference-guides/block-api/block-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ add_action( 'init', 'myplugin_register_template' );

_Options:_

- `noContent` — prevents all operations. Additionally, the block types that don't have content are hidden from the list view and can't gain focus within the block list. Unlike the other lock types, this is not overrideable by children.
- `all` — prevents all operations. It is not possible to insert new blocks, move existing blocks, or delete blocks.
- `insert` — prevents inserting or removing blocks, but allows moving existing blocks.

Expand Down

0 comments on commit d263f74

Please sign in to comment.