跳转到主要内容

Block Pattern Categories

Schema

The schema defines all the fields that exist within a block pattern category 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

The category name.

JSON data type: string

Read only

Context: view, edit, embed

label

The category label, in human readable format.

JSON data type: string

Read only

Context: view, edit, embed

description

The category description, in human readable format.

JSON data type: string

Read only

Context: view, edit, embed

</div>

Retrieve a Block Pattern Category

	<h3>Definition & Example Request</h3>

	<code>GET /wp/v2/block-patterns/categories</code>

	<p>Query this endpoint to retrieve a specific block pattern category record.</p>

	<code>$ curl https://example.com/wp-json/wp/v2/block-patterns/categories</code>
</div>
<div class="secondary">
		<p>There are no arguments for this endpoint.</p>

</div>