Registering Block Patterns

The WordPress block editor provides opportunities for creating complex content for WordPress posts and pages. Content creators may find that configuring similar complex blocks again and again to be a cumbersome task. Fortunately, block patterns provide a way for easy access to pre-configured blocks and groups of blocks. Block Patterns are perfect for frequently used block configurations. This workshop will cover how to generate the markup for a block pattern in the block editor, and how to add the registration code for that pattern to a plugin or theme.

Learning outcomes

  1. Configure blocks in the WordPress Block Editor
  2. Know the difference between Blocks, Reusable Blocks, and Block Patterns
  3. Register a block pattern category in a plugin or theme
  4. Register a block pattern in a plugin or theme

Comprehension questions

  • What is a block pattern?
  • What is a block pattern category?
  • Can you name 3-5 use cases for registering block patterns in your plugin or theme?
  • How do block patterns differ from reusable blocks?
  • What level of coding knowledge is needed to register a block pattern?
  • Length 20 mins
  • Topic Block Development
  • Language English

You must agree to our Code of Conduct in order to participate.

Daisy Olsen
I’m a Developer Relations Wrangler with Automattic I have worked in and around the WordPress community since 2007. I’ve also spoken at WordCamps in India, New York City, Boston, and Chicago. I had the honor of helping to organize the first WordCamp Boston in 2010. In my spare time, you’ll often find me listening to audiobooks while knitting. I love to travel with my family and have often spent many weeks throughout the year visiting different places.