Skip to content

Commit

Permalink
Docs: Document the inserter property in `WP_Block_Patterns_Registry…
Browse files Browse the repository at this point in the history
…::register()`.

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

See #56792.

git-svn-id: https://develop.svn.wordpress.org/trunk@55174 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Feb 1, 2023
1 parent d2f6c41 commit 8604838
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wp-includes/class-wp-block-patterns-registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8604838

Please sign in to comment.