hosting_installWordPressThemeV1
Installs a WordPress theme by providing the software ID and theme slug. Optionally customize Hostinger themes with palette, layout, and font.
Instructions
Install a theme on an existing WordPress installation.
Provide the WordPress installation (software) identifier in the path. It can
be obtained from GET /api/hosting/v1/wordpress/installations (the id
field).
When the theme is one of the Hostinger themes (hostinger-blog,
hostinger-affiliate-theme, hostinger-ai-theme), the optional palette,
layout, and font fields are forwarded to the custom installer (defaults:
palette1, layout1, default). For any other theme they are ignored.
This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted. | |
| theme | Yes | Slug of the theme to install. Hostinger theme slugs (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme) trigger the custom installer and forward the optional palette/layout/font fields; any other WordPress theme slug uses the standard installer and ignores those fields. | |
| layout | No | Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted. | |
| palette | No | Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted. | |
| software | Yes | WordPress installation (software) identifier | |
| username | Yes | username parameter |