Tool to generate code for your WordPress Block Patterns

We made a little tool to make it easier to make the code snippet you need to add patterns in your functions.php file.

Paste your blocks here

When pasted, it escapes your html (using JSON.stringify) and adds it into a code snippet below.

Copy the above code and insert it into your functions.php or plugin file. You may also change the name and description in the snippet. We also wrote a short guide on how to add Patterns, read it here.

Stay updated with the latest from WpBlockz

* indicates required