Themes Edit

Schema Schema

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

stylesheet

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

Read only

Context:

template

string
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.

Read only

Context:

author

object
The theme author.

Read only

Context:

author_uri

object
The website of the theme author.

Read only

Context:

description

object
A description of the theme.

Read only

Context:

name

object
The name of the theme.

Read only

Context:

requires_php

string
The minimum PHP version required for the theme to work.

Read only

Context:

requires_wp

string
The minimum WordPress version required for the theme to work.

Read only

Context:

screenshot

string,
uri
The theme's screenshot URL.

Read only

Context:

tags

object
Tags indicating styles and features of the theme.

Read only

Context:

textdomain

string
The theme's text domain.

Read only

Context:

theme_supports

object
Features supported by this theme.

Read only

Context:

theme_uri

object
The URI of the theme's webpage.

Read only

Context:

version

string
The theme's current version.

Read only

Context:

Top ↑

List Themes List Themes

Query this endpoint to retrieve a collection of themes. The response you receive can be controlled and filtered using the URL query parameters below.

Definition Definition

GET /wp/v2/themes

Top ↑

Example Request Example Request

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

Top ↑

Arguments Arguments

context Scope under which the request is made; determines fields present in response.
page Current page of the collection.

Default: 1

per_page Maximum number of items to be returned in result set.

Default: 10

search Limit results to those matching a string.
status Limit result set to themes assigned one or more statuses.

Required: 1