wp block pattern <command>

Retrieves details on registered block patterns.

In this article

Get information on WordPress’ built-in and custom block patterns from the WP_Block_Patterns_Registry.

Examples

# List all registered block patterns
$ wp block pattern list

# Get details about a specific pattern
$ wp block pattern get core/query-standard-posts --format=json

# List patterns in a specific category
$ wp block pattern list --category=featured

Subcommands

NameDescription
wp block pattern get

Gets details about a registered block pattern.

wp block pattern list

Lists registered block patterns.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.