WPX
Update WordPress installation language
Changed onThis function sets the active WordPress language for an installation that the caller owns. The system installs the translation files if the site does not already have them, then activates the locale.
Note:
- The system verifies that the caller owns the installation before it changes anything.
- get_admin_account does not report the active language. There is no function that reads it back.
post/WPX/set_language
Request
- Base URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Request body application/x-www-form-urlencoded
Example request
{
"id": 17,
"language": "de_DE"
}Response
The HTTP request was successful.
Example response
{
"apiversion": 3,
"func": "set_language",
"module": "WPX",
"result": {
"data": {
"id": 17,
"language": "de_DE"
},
"metadata": {
"transformed": 1
},
"status": 1
}
}Changes
- info
endpoint added
- info