

keywords (optional): An array of aliases or keywords that help users discover the pattern while searching.A category must be registered separately in order to be used here. Block patterns can be shown on multiple categories. categories (optional): An array of registered pattern categories used to group block patterns.The description will help users discover the pattern while searching. A description is optional but it is strongly encouraged when the title does not fully describe what the pattern does.

description (optional): A visually hidden text used to describe the pattern in the inserter.content (required): Block HTML Markup for the pattern.title (required): A human-readable title for the pattern.The properties available for block patterns are: – properties: An array describing properties of the pattern. – title: A machine-readable title with a naming convention of namespace/title. The register_block_pattern helper function receives two arguments. Theme and plugin authors can register additional custom block patterns using the register_block_pattern helper function. The editor comes with several core block patterns. – Block patterns contextual to block types and pattern transformations Once inserted into content, the blocks are ready for additional or modified content and configuration. Browse: Home / Block Editor Handbook / Reference Guides / Block API Reference / Patterns Patterns Editīlock Patterns are predefined block layouts, available from the patterns tab of the block inserter.
