Docs: Document the inserter property in WP_Block_Patterns_Registry::register().

Follow-up to [53152], [55173].

See #56792.
Built from https://develop.svn.wordpress.org/trunk@55174


git-svn-id: http://core.svn.wordpress.org/trunk@54707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-02-01 15:29:13 +00:00
parent d099f2f708
commit 1b359fb4b9
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-alpha-55173';
$wp_version = '6.2-alpha-55174';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.