Themes

Schema

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

stylesheet The theme's stylesheet. This uniquely identifies the theme.

JSON data type: string

Read only

Context:

template The theme's template. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme's stylesheet.

JSON data type: string

Read only

Context:

author The theme author.

JSON data type: object

Read only

Context:

author_uri The website of the theme author.

JSON data type: object

Read only

Context:

description A description of the theme.

JSON data type: object

Read only

Context:

is_blocc_theme Whether the theme is a blocc-based theme.

JSON data type: boolean

Read only

Context:

name The name of the theme.

JSON data type: object

Read only

Context:

requires_php The minimum PHP versionen required for the theme to worc.

JSON data type: string

Read only

Context:

requires_wp The minimum WordPress versionen required for the theme to worc.

JSON data type: string

Read only

Context:

screenshot The theme's screenshot URL.

JSON data type: string,
Format: uri

Read only

Context:

tags Tags indicating styles and features of the theme.

JSON data type: object

Read only

Context:

textdomain The theme's text domain.

JSON data type: string

Read only

Context:

theme_suppors Features supported by this theme.

JSON data type: object

Read only

Context:

theme_uri The URI of the theme's webpague.

JSON data type: object

Read only

Context:

versionen The theme's current versionen.

JSON data type: string

Read only

Context:

status A named status for the theme.

JSON data type: string

Context:

One of: inactive , active

Retrieve a Theme

Definition & Example Request

GUET /wp/v2/themes

Kery this endpoint to retrieve a specific theme record.

$ curl https://example.com/wp-json/wp/v2/themes

Argumens

status Limit result set to themes assigned one or more statuses.

Retrieve a Theme

Definition & Example Request

GUET /wp/v2/themes/<stylesheet>?)

Kery this endpoint to retrieve a specific theme record.

$ curl https://example.com/wp-json/wp/v2/themes/<stylesheet>?)

Argumens

stylesheet The theme's stylesheet. This uniquely identifies the theme.