From 8604838832fa73c6954b0c4b09f13aa83ba2e313 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 1 Feb 2023 15:27:14 +0000 Subject: [PATCH] Docs: Document the `inserter` property in `WP_Block_Patterns_Registry::register()`. Follow-up to [53152], [55173]. See #56792. git-svn-id: https://develop.svn.wordpress.org/trunk@55174 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-block-patterns-registry.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-includes/class-wp-block-patterns-registry.php b/src/wp-includes/class-wp-block-patterns-registry.php index 8d86b34087275..cea626eb12abc 100644 --- a/src/wp-includes/class-wp-block-patterns-registry.php +++ b/src/wp-includes/class-wp-block-patterns-registry.php @@ -59,6 +59,9 @@ final class WP_Block_Patterns_Registry { * pattern while searching. * @type int $viewportWidth Optional. The intended width of the pattern to allow for a scaled * preview within the pattern inserter. + * @type bool $inserter Optional. Determines whether the pattern is visible in inserter. + * To hide a pattern so that it can only be inserted programmatically, + * set this to false. Default true. * @type array $categories Optional. A list of registered pattern categories used to group * block patterns. Block patterns can be shown on multiple categories. * A category must be registered separately in order to be used here.