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).
Uses 13
Used by 1
Constants and properties
| private | readonly Minn\Rest\Settings $settings | Promoted from the constructor. |
| private | readonly Minn\Rest\Caller $caller | Promoted from the constructor. |
| private | readonly Minn\Rest\LiveSettings $live | Promoted from the constructor. |
Public
| new | __construct(Minn\Rest\Settings $settings, Minn\Rest\Caller $caller, Minn\Rest\LiveSettings $live)# | |
| method | settings(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. |
Nothing matches.