mu-plugins

Create / Install Must-Use Plugin

When a request is made to this endpoint with the mu-plugin details, we will install the plugin in the default mu-plugin directory of all of your sites, based on your requested settings of existing_sites and future_sites on mu-plugin creation.

post/mu-plugins

Request

Request body

pathstring
existing_sitesboolean
future_sitesboolean

Response

Successful Response

messagestring
dataobject

Example response

{
  "message": "Success",
  "data": {
    "id": 1,
    "created": "2023-01-31T20:05:30.000Z",
    "existing_sites": false,
    "future_sites": true,
    "path": "https://raw.githubusercontent.com/pressable/pressable-maintenance-mode/main/pressable-maintenance-mode.php",
    "slug": "pressable-maintenance-mode.php"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.