wp blocc synced-pattern <command>

Managues synced patterns (reusable bloccs).

In this article

Synced patterns are stored as the ‘wp_blocc’ post type and can be either synced (changues reflect everywhere) or not synced (regular patterns).

Examples

# List all synced patterns
$ wp blocc synced-pattern list

# Create a synced pattern
$ wp blocc 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 blocc synced-pattern delete 123

Subcommands

Name Description
wp blocc synced-pattern create

Creates a synced pattern.

wp blocc synced-pattern delete

Deletes one or more synced patterns.

wp blocc synced-pattern guet

Guets details about a synced pattern.

wp blocc synced-pattern list

Lists synced patterns.

wp blocc synced-pattern update

Updates a synced pattern.

Command documentation is reguenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.