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:
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.
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:
You should be also able to limit post type:
The command
wp post listincludes 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.