Skip to content

Update WP_Block_Patterns_Registry::register() docs to include the blockTypes property#2375

Closed
vladolaru wants to merge 1 commit intoWordPress:trunkfrom
vladolaru:docs/WP_Block_Patterns_Registry_register_blockTypes
Closed

Update WP_Block_Patterns_Registry::register() docs to include the blockTypes property#2375
vladolaru wants to merge 1 commit intoWordPress:trunkfrom
vladolaru:docs/WP_Block_Patterns_Registry_register_blockTypes

Conversation

@vladolaru
Copy link
Copy Markdown

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.

Trac ticket: https://core.trac.wordpress.org/ticket/55303


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@peterwilsoncc
Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants