Skip to content

WP-CLI Command: wp block pattern stats #215

Description

@TeemuSuoranta

Same idea as proposed for blocks in #213.

This command would search through posts and list all patterns that are used in any post.

These would result into table with pattern name and amount of uses.

Also returning example pages where block is used would be useful.

Base command:

wp block pattern stats

You should be also able to limit post type:

wp block pattern stats --post-type=page

The command wp post list includes example implementation of passing query arguments, return fields and format so it's good benchmark for this.

Use case: Review what patterns are in use and what are not. Useful for design reviews.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions