API / Minn\Rest / SettingsController

SettingsController final readonly class

Minn\Rest\SettingsController · public/minn/src/Minn/Rest/SettingsController.php · 32 lines

wp/v2/settings: read and write, both behind manage_options; with plugins loaded, every registered setting (LiveSettings).

Used by 1

Constants and properties

privatereadonly Minn\Rest\Settings $settings

Promoted from the constructor.

privatereadonly Minn\Rest\Caller $caller

Promoted from the constructor.

privatereadonly Minn\Rest\LiveSettings $live

Promoted from the constructor.

Public

new__construct(Minn\Rest\Settings $settings, Minn\Rest\Caller $caller, Minn\Rest\LiveSettings $live)#
methodsettings(Minn\Http\Request $request): Minn\Http\ResponseGET /wp/v2/settings (signed in)POST /wp/v2/settings (signed in)PUT /wp/v2/settings (signed in)PATCH /wp/v2/settings (signed in)#

The site settings: read, or write from the body.