List plugins

List all installed WordPress plugins on a site.


GET/api/servers/{server}/sites/{id}/wordpress/plugins

List plugins

Returns a list of all installed WordPress plugins with their name, title, status, version, and available update information.

Requires WP-CLI to be installed on the server.

Query parameters

  • Name
    ondemand
    Type
    boolean
    Description

    When set to true, the command runs synchronously and returns the result directly. When omitted or false (default), the action is queued and processed in the background.

Request

GET
/api/servers/{server}/sites/{id}/wordpress/plugins
curl "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/plugins?ondemand=true" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": [
    {
      "name": "akismet",
      "title": "Akismet Anti-spam: Spam Protection",
      "status": "inactive",
      "version": "5.6",
      "update_version": "",
      "auto_update": "off"
    },
    {
      "name": "wordpress-seo",
      "title": "Yoast SEO",
      "status": "active",
      "version": "27.2",
      "update_version": "",
      "auto_update": "off"
    }
  ]
}