List themes

List all installed WordPress themes on a site.


GET/api/servers/{server}/sites/{id}/wordpress/themes

List themes

Returns a list of all installed WordPress themes with their name, title, status, version, and available update information.

Requires WP-CLI to be installed on the server.

Query parameters

  • Name
    ondemand
    Type
    boolean
    Description

    When set to true, the command runs synchronously and returns the result directly. When omitted or false (default), the action is queued and processed in the background.

Request

GET
/api/servers/{server}/sites/{id}/wordpress/themes
curl "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/themes?ondemand=true" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": [
    {
      "name": "twentytwentyfive",
      "title": "Twenty Twenty-Five",
      "status": "active",
      "version": "1.4",
      "update_version": "",
      "auto_update": "off"
    },
    {
      "name": "twentytwentyfour",
      "title": "Twenty Twenty-Four",
      "status": "inactive",
      "version": "1.4",
      "update_version": "",
      "auto_update": "off"
    }
  ]
}