[wp-meta] [Making WordPress.org] #5995: Theme Block Pattern Demo
Making WordPress.org
noreply at wordpress.org
Fri Jun 24 06:17:13 UTC 2022
#5995: Theme Block Pattern Demo
-----------------------------+---------------------
Reporter: courane01 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Theme Directory | Resolution:
Keywords: |
-----------------------------+---------------------
Comment (by poena):
There are several ways for a theme to add patterns.
Twenty Twenty-Two for example has a large amount of patterns and registers
them using
https://developer.wordpress.org/reference/functions/register_block_pattern/
Pattern files can also be placed inside a patterns folder.
Maybe as a first step it could be limited to patterns from the pattern
directory, since these patterns can be linked to and previewed already.
Themes lists these patterns in theme.json, using this format:
https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-
json/#patterns
https://themes.trac.wordpress.org/browser/jace/1.0.6/theme.json#L576
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5995#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list