#55303 closed enhancement (fixed)
Update WP_Block_Patterns_Registry::register() docs to include the blockTypes property
Reported by: | vlad.olaru | Owned by: | peterwilsoncc |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | has-patch |
Focuses: | docs | Cc: |
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.
3 years ago
#1
- Keywords has-patch added
#3
@
3 years ago
- Owner set to peterwilsoncc
- Resolution set to fixed
- Status changed from new to closed
In 52943:
peterwilsoncc commented on PR #2375:
3 years ago
#4
Note: See
TracTickets for help on using
tickets.
Since WordPress 5.8, block patterns can declare a
blockTypes
property 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