wp block synced-pattern <command>

Manages synced patterns (reusable blocks).

In this article

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='&lt;!-- wp:paragraph --&gt;&lt;p&gt;Hello&lt;/p&gt;&lt;!-- /wp:paragraph --&gt;'

# Delete a synced pattern
$ wp block synced-pattern delete 123

Subcommands

NameDescription
wp block synced-pattern create

Creates a synced pattern.

wp block synced-pattern delete

Deletes one or more synced patterns.

wp block synced-pattern get

Gets details about a synced pattern.

wp block synced-pattern list

Lists synced patterns.

wp block synced-pattern update

Updates a synced pattern.

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.