Skip to content

Latest commit

 

History

History
130 lines (117 loc) · 2.99 KB

wp_global_styles.md

File metadata and controls

130 lines (117 loc) · 2.99 KB


Global_Styles

Schema

The schema defines all the fields that exist within a global_styles 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.

id

ID of global styles config.

JSON data type: string

Read only

Context: embed, view, edit

styles

Global styles.

JSON data type: object

Context: view, edit

settings

Global settings.

JSON data type: object

Context: view, edit

title

Title of the global styles variation.

JSON data type: object or string

Context: embed, view, edit

</div>

Retrieve a Global_Styles

	<h3>Definition & Example Request</h3>

	<code>GET /wp/v2/global-styles/&lt;id&gt;</code>

	<p>Query this endpoint to retrieve a specific global_styles record.</p>

	<code>$ curl https://example.com/wp-json/wp/v2/global-styles/&lt;id&gt;</code>
</div>
<div class="secondary">
		<h3>Arguments</h3>
<table class="arguments">
				<tr>
			<td>
										<code>id</code><br />
								</td>
			<td>
										<p>The id of a template</p>
																							</td>
		</tr>
		</table>

</div>

Update a Global_Styles

Arguments

styles

Global styles.

settings

Global settings.

title

Title of the global styles variation.

</div>
<div class="secondary">
	<h3>Definition</h3>

	<code>POST /wp/v2/global-styles/&lt;id&gt;</code>

	<h3>Example Request</h3>

	<code></code>
</div>