mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
d2f6c417ff
commit
8604838832
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user