handbook/commands/block/synced-pattern.md
github-actions[bot] c22aa665e6 Regenerate handbook
2025-12-17 18:56:32 +00:00

18 lines
550 B
Markdown

# 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