Block Patterns
Edit
Schema
The schema defines all the fields that exist within a block pattern record. Any response from these endpoints can be expected to contain the fields below unless the `_filter` query parameter is used or the schema field only appears in a specific context.
name string |
The pattern name.
Read only Context: |
title string |
The pattern title, in human readable format.
Read only Context: |
content string |
The pattern content.
Read only Context: |
description string |
The pattern detailed description.
Read only Context: |
viewport_width number |
The pattern viewport width for inserter preview.
Read only Context: |
inserter boolean |
Determines whether the pattern is visible in inserter.
Read only Context: |
categories array |
The pattern category slugs.
Read only Context: |
keywords array |
The pattern keywords.
Read only Context: |
block_types array |
Block types that the pattern is intended to be used with.
Read only Context: |
post_types array |
An array of post types that the pattern is restricted to be used with.
Read only Context: |
template_types array |
An array of template types where the pattern fits.
Read only Context: |
Retrieve a Block Pattern
Definition & Example Request
GET /wp/v2/block-patterns/patterns
Query this endpoint to retrieve a specific block pattern record.
$ curl https://example.com/wp-json/wp/v2/block-patterns/patterns