All URIs are relative to https://developers.hostinger.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| activateWordPressPluginV1() | POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate | Activate WordPress plugin |
| checkIfWooCommerceIsInstalledV1() | GET /api/hosting/v1/wordpress/plugins/is-woocommerce-installed | Check if WooCommerce is installed |
| deactivateWordPressPluginV1() | POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate | Deactivate WordPress plugin |
| deployWordPressPluginV1() | POST /api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy | Deploy WordPress plugin |
| installWordPressPluginsV1() | POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install | Install WordPress plugins |
| listAvailableWordPressPluginsV1() | GET /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available | List available WordPress plugins |
| listInstalledWordPressPluginsV1() | GET /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins | List installed WordPress plugins |
| listSuggestedWordPressPluginsV1() | GET /api/hosting/v1/wordpress/plugins/suggested | List suggested WordPress plugins |
| searchWordPressPluginsV1() | GET /api/hosting/v1/wordpress/plugins | Search WordPress plugins |
| uninstallWordPressPluginsV1() | POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall | Uninstall WordPress plugins |
| updateHostingerWordPressPluginV1() | POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update | Update Hostinger WordPress plugin |
| updateWordPressPluginsV1() | POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update | Update WordPress plugins |
activateWordPressPluginV1($username, $software, $wordPressV1PluginsActivatePluginRequest): \Hostinger\Model\CommonSuccessEmptyResourceActivate WordPress plugin
Activate an installed plugin on a 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). This operation is asynchronous: a successful response only means the activation job has been queued.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
$wordPressV1PluginsActivatePluginRequest = new \Hostinger\Model\WordPressV1PluginsActivatePluginRequest(); // \Hostinger\Model\WordPressV1PluginsActivatePluginRequest
try {
$result = $apiInstance->activateWordPressPluginV1($username, $software, $wordPressV1PluginsActivatePluginRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->activateWordPressPluginV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier | |
| wordPressV1PluginsActivatePluginRequest | \Hostinger\Model\WordPressV1PluginsActivatePluginRequest |
\Hostinger\Model\CommonSuccessEmptyResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
checkIfWooCommerceIsInstalledV1($domain): \Hostinger\Model\WordPressV1PluginsWoocommerceInstalledResourceCheck if WooCommerce is installed
Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$domain = example.com; // string | Filter by domain name (case-insensitive substring match)
try {
$result = $apiInstance->checkIfWooCommerceIsInstalledV1($domain);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->checkIfWooCommerceIsInstalledV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| domain | string | Filter by domain name (case-insensitive substring match) | [optional] |
\Hostinger\Model\WordPressV1PluginsWoocommerceInstalledResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deactivateWordPressPluginV1($username, $software, $wordPressV1PluginsDeactivatePluginRequest): \Hostinger\Model\CommonSuccessEmptyResourceDeactivate WordPress plugin
Deactivate an installed plugin on a 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). This operation is asynchronous: a successful response only means the deactivation job has been queued.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
$wordPressV1PluginsDeactivatePluginRequest = new \Hostinger\Model\WordPressV1PluginsDeactivatePluginRequest(); // \Hostinger\Model\WordPressV1PluginsDeactivatePluginRequest
try {
$result = $apiInstance->deactivateWordPressPluginV1($username, $software, $wordPressV1PluginsDeactivatePluginRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->deactivateWordPressPluginV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier | |
| wordPressV1PluginsDeactivatePluginRequest | \Hostinger\Model\WordPressV1PluginsDeactivatePluginRequest |
\Hostinger\Model\CommonSuccessEmptyResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deployWordPressPluginV1($username, $domain, $wordPressV1PluginsDeployPluginRequest): \Hostinger\Model\CommonSuccessEmptyResourceDeploy WordPress plugin
Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website's directory. The plugin will be activated and made available in the WordPress admin panel.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$domain = mydomain.tld; // string | Domain name
$wordPressV1PluginsDeployPluginRequest = new \Hostinger\Model\WordPressV1PluginsDeployPluginRequest(); // \Hostinger\Model\WordPressV1PluginsDeployPluginRequest
try {
$result = $apiInstance->deployWordPressPluginV1($username, $domain, $wordPressV1PluginsDeployPluginRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->deployWordPressPluginV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| domain | string | Domain name | |
| wordPressV1PluginsDeployPluginRequest | \Hostinger\Model\WordPressV1PluginsDeployPluginRequest |
\Hostinger\Model\CommonSuccessEmptyResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
installWordPressPluginsV1($username, $software, $wordPressV1PluginsInstallPluginsRequest): \Hostinger\Model\CommonSuccessEmptyResourceInstall WordPress plugins
Install one or more plugins 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). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
$wordPressV1PluginsInstallPluginsRequest = new \Hostinger\Model\WordPressV1PluginsInstallPluginsRequest(); // \Hostinger\Model\WordPressV1PluginsInstallPluginsRequest
try {
$result = $apiInstance->installWordPressPluginsV1($username, $software, $wordPressV1PluginsInstallPluginsRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->installWordPressPluginsV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier | |
| wordPressV1PluginsInstallPluginsRequest | \Hostinger\Model\WordPressV1PluginsInstallPluginsRequest |
\Hostinger\Model\CommonSuccessEmptyResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listAvailableWordPressPluginsV1($username, $software): \Hostinger\Model\WordPressV1PluginsAvailablePluginResource[]List available WordPress plugins
List plugins recommended for installation on a WordPress installation that are not yet installed. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the id field).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
try {
$result = $apiInstance->listAvailableWordPressPluginsV1($username, $software);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->listAvailableWordPressPluginsV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier |
\Hostinger\Model\WordPressV1PluginsAvailablePluginResource[]
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listInstalledWordPressPluginsV1($username, $software, $category): \Hostinger\Model\WordPressV1PluginsInstalledPluginResource[]List installed WordPress plugins
List plugins 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).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
$category = cache; // string | Filter installed plugins by category.
try {
$result = $apiInstance->listInstalledWordPressPluginsV1($username, $software, $category);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->listInstalledWordPressPluginsV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier | |
| category | string | Filter installed plugins by category. | [optional] |
\Hostinger\Model\WordPressV1PluginsInstalledPluginResource[]
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listSuggestedWordPressPluginsV1($orderId): \Hostinger\Model\WordPressV1PluginsSuggestedPluginGroupResource[]List suggested WordPress plugins
List curated plugin suggestions grouped by website type. Use the returned slug values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$orderId = 123456; // int | Optionally scope suggestions to a specific order.
try {
$result = $apiInstance->listSuggestedWordPressPluginsV1($orderId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->listSuggestedWordPressPluginsV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| orderId | int | Optionally scope suggestions to a specific order. | [optional] |
\Hostinger\Model\WordPressV1PluginsSuggestedPluginGroupResource[]
[Back to top] [Back to API list] [Back to Model list] [Back to README]
searchWordPressPluginsV1($search): \Hostinger\Model\WordPressV1PluginsPluginResource[]Search WordPress plugins
Search the WordPress.org plugin directory for plugins available to install. Use the returned slug values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$search = seo; // string | Search term to match against plugin names. Minimum 3 characters.
try {
$result = $apiInstance->searchWordPressPluginsV1($search);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->searchWordPressPluginsV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| search | string | Search term to match against plugin names. Minimum 3 characters. |
\Hostinger\Model\WordPressV1PluginsPluginResource[]
[Back to top] [Back to API list] [Back to Model list] [Back to README]
uninstallWordPressPluginsV1($username, $software, $wordPressV1PluginsUninstallPluginsRequest): \Hostinger\Model\CommonSuccessEmptyResourceUninstall WordPress plugins
Uninstall one or more plugins from a 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). This operation is asynchronous: a successful response only means the uninstall job has been queued.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
$wordPressV1PluginsUninstallPluginsRequest = new \Hostinger\Model\WordPressV1PluginsUninstallPluginsRequest(); // \Hostinger\Model\WordPressV1PluginsUninstallPluginsRequest
try {
$result = $apiInstance->uninstallWordPressPluginsV1($username, $software, $wordPressV1PluginsUninstallPluginsRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->uninstallWordPressPluginsV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier | |
| wordPressV1PluginsUninstallPluginsRequest | \Hostinger\Model\WordPressV1PluginsUninstallPluginsRequest |
\Hostinger\Model\CommonSuccessEmptyResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateHostingerWordPressPluginV1($username, $software, $wordPressV1PluginsUpdateHostingerPluginRequest): \Hostinger\Model\CommonSuccessEmptyResourceUpdate Hostinger WordPress plugin
Update a Hostinger plugin to its latest version on a 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). This operation is asynchronous: a successful response only means the update job has been queued.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
$wordPressV1PluginsUpdateHostingerPluginRequest = new \Hostinger\Model\WordPressV1PluginsUpdateHostingerPluginRequest(); // \Hostinger\Model\WordPressV1PluginsUpdateHostingerPluginRequest
try {
$result = $apiInstance->updateHostingerWordPressPluginV1($username, $software, $wordPressV1PluginsUpdateHostingerPluginRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->updateHostingerWordPressPluginV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier | |
| wordPressV1PluginsUpdateHostingerPluginRequest | \Hostinger\Model\WordPressV1PluginsUpdateHostingerPluginRequest |
\Hostinger\Model\CommonSuccessEmptyResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateWordPressPluginsV1($username, $software, $wordPressV1PluginsUpdatePluginsRequest): \Hostinger\Model\CommonSuccessEmptyResourceUpdate WordPress plugins
Update one or more installed plugins to their latest version on a 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). This operation is asynchronous: a successful response only means the update job has been queued.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\WordPressPluginsApi(config: $config);
$username = u123456789; // string
$software = 1232456789; // string | WordPress installation (software) identifier
$wordPressV1PluginsUpdatePluginsRequest = new \Hostinger\Model\WordPressV1PluginsUpdatePluginsRequest(); // \Hostinger\Model\WordPressV1PluginsUpdatePluginsRequest
try {
$result = $apiInstance->updateWordPressPluginsV1($username, $software, $wordPressV1PluginsUpdatePluginsRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WordPressPluginsApi->updateWordPressPluginsV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| software | string | WordPress installation (software) identifier | |
| wordPressV1PluginsUpdatePluginsRequest | \Hostinger\Model\WordPressV1PluginsUpdatePluginsRequest |
\Hostinger\Model\CommonSuccessEmptyResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]