wp block pattern-category <command>

Retrieves details on registered block pattern categories.

In this article

Get information on block pattern categories from the WP_Block_Pattern_Categories_Registry.

Examples

# List all registered pattern categories
$ wp block pattern-category list

# Get details about a specific category
$ wp block pattern-category get featured --format=json

Subcommands

NameDescription
wp block pattern-category get

Gets details about a registered block pattern category.

wp block pattern-category list

Lists registered block pattern categories.

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.