Show WordPress core version
Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it.
Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it.
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
versionstringOptionalExample:
Installed WordPress core version
6.5.2401
Unauthenticated response
application/json
500
Error response
application/json
get/api/hosting/v1/accounts/{username}/wordpress/{software}/version
GET /api/hosting/v1/accounts/{username}/wordpress/{software}/version HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"version": "6.5.2",
"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?