From e435711e893ee8410fcbb12740ae96ba6e453565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Tue, 13 Sep 2022 17:48:33 +0200 Subject: [PATCH] Document template_lock=noContent for CPTs (#43977) --- docs/reference-guides/block-api/block-templates.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference-guides/block-api/block-templates.md b/docs/reference-guides/block-api/block-templates.md index 38348e5e0775e7..babe693c542141 100644 --- a/docs/reference-guides/block-api/block-templates.md +++ b/docs/reference-guides/block-api/block-templates.md @@ -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.