sites
File Modification Settings
Returns the current state of the wp-config file-modification constants for a site. ‘disallow_file_edit’ reports the DISALLOW_FILE_EDIT constant (hides the built-in plugin & theme code editor in the WordPress admin) and ‘disallow_file_mods’ reports the DISALLOW_FILE_MODS constant (also blocks plugin/theme installs, updates, and deletions).
get/sites/{site_id}/file-modifications
Request
- Base URLhttps://my.pressable.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
site_idinteger required
Response
Successful Response
Example response
{
"message": "Success",
"data": {
"disallow_file_edit": true,
"disallow_file_mods": false
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.