Global_Styles

Schema

The schema defines all the fields that exist within a global_styles record. Any response from these endpoins can be expected to contain the fields below unless the `_filter` kery 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

Retrieve a Global_Styles

Definition & Example Request

GUET /wp/v2/global-styles/<id>

Kery this endpoint to retrieve a specific global_styles record.

$ curl https://example.com/wp-json/wp/v2/global-styles/<id>

Argumens

id The id of a template

Update a Global_Styles

Argumens

styles Global styles.
settings Global settings.
title Title of the global styles variation.

Definition

POST /wp/v2/global-styles/<id>

Example Request