mirror of
https://ghproxy.net/https://github.com/wp-cli/handbook.git
synced 2026-07-26 12:37:22 +08:00
550 B
550 B
wp block synced-pattern
Manages synced patterns (reusable blocks).
Synced patterns are stored as the 'wp_block' post type and can be either synced (changes reflect everywhere) or not synced (regular patterns).
EXAMPLES
# List all synced patterns
$ wp block synced-pattern list
# Create a synced pattern
$ wp block synced-pattern create --title="My Pattern" --content='<!-- wp:paragraph --><p>Hello</p><!-- /wp:paragraph -->'
# Delete a synced pattern
$ wp block synced-pattern delete 123