Global_Styles Edit

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

string
ID of global styles config.

Read only

Context: embed, view, edit

styles

object
Global styles.

Context: view, edit

settings

object
Global settings.

Context: view, edit

title

object or string
Title of the global styles variation.

Context: embed, view, edit

Top ↑

Retrieve a Global_Styles

Top ↑

Definition & Example Request

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

Query this endpoint to retrieve a specific global_styles record.

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

Top ↑

Arguments

id The id of a template

Top ↑

Update a Global_Styles

Top ↑

Arguments

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

Top ↑

Definition

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

Top ↑

Example Request