#55303 closed enhancement (fixed)
Update WP_Block_Patterns_Registry::register() docs to include the blockTypes property
| Reported by: | vlad.olaru | Owned by: | peterwilsoncc |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
Since WordPress 5.8, block patterns can declare a blockTypes property to allow blocks to use those patterns in other contexts, besides the inserter. The WP_Block_Patterns_Registry::register() function is missing the documentation about this logic.
Here is the discussion related to blockTypes https://github.com/WordPress/gutenberg/pull/30471
Change History (4)
This ticket was mentioned in PR #2375 on WordPress/wordpress-develop by vladolaru.
5 years ago
#1
- Keywords has-patch added
peterwilsoncc commented on PR #2375:
5 years ago
#4
Note:
See TracTickets
for help on using tickets.
Since WordPress 5.8, block patterns can declare a
blockTypesproperty to allow blocks to use those patterns in other contexts, besides the inserter. TheWP_Block_Patterns_Registry::register()function is missing the documentation about this.Trac ticket: https://core.trac.wordpress.org/ticket/55303