For the complete documentation index, see llms.txt. This page is also available as Markdown.

Deploy WordPress plugin

Deploy a WordPress plugin from an already uploaded directory.

Deploy WordPress plugin

post

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Body
slugstringRequired

Slug of the plugin

Example: my-plugin
plugin_pathstringRequired

Relative path to the plugin directory from wp-content/plugins

Example: my-plugin-new
Responses
200

Success response

application/json
messagestringOptionalExample: Request accepted
post/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy
POST /api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "slug": "my-plugin",
  "plugin_path": "my-plugin-new"
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?