List installed WordPress themes
List themes installed on a WordPress installation, including their status, available updates and known vulnerabilities.
List themes installed on a WordPress installation, including their status, available updates and known vulnerabilities.
Provide the WordPress installation (software) identifier in the path. It can
be obtained from GET /api/hosting/v1/wordpress/installations (the id field).
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
usernamestringRequiredExample:
u123456789softwarestringRequiredExample:
WordPress installation (software) identifier
1232456789Pattern: ^[0-9]+$Responses
200
Success response
application/json
namestringOptionalExample:
Theme slug
twentytwentyonetitlestringOptionalExample:
Human readable theme name
Twenty Twenty-OneversionstringOptionalExample:
Installed theme version
2.2statusstring · enumOptionalExample:
Whether the theme is active or inactive
activePossible values: updatestringOptionalExample:
Available update version, or "none" when up to date
none401
Unauthenticated response
application/json
500
Error response
application/json
get/api/hosting/v1/accounts/{username}/wordpress/{software}/themes
GET /api/hosting/v1/accounts/{username}/wordpress/{software}/themes HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "twentytwentyone",
"title": "Twenty Twenty-One",
"version": "2.2",
"status": "active",
"update": "none",
"vulnerabilities": [
{
"title": "Cross-Site Scripting (XSS)",
"description": "A stored XSS vulnerability affecting older versions.",
"affected_in": "4.7.0",
"fixed_in": "4.7.1",
"direct_url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/example"
}
]
}
]Last updated
Was this helpful?