From 2e14dde81e2da09c173738d51dd78fb85fb9e851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Thu, 8 Sep 2022 13:19:54 +0200 Subject: [PATCH] Document template_lock=noContent for CPTs --- 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.