includes/Settings/class-settings-command.php
Settings write command — bounded orchestration for wppo_settings writes.
Class Settings_Command
Narrow command seam for settings writes.
final class Settings_Commandpublicstatic save()
public static function save(array $settings, ?array=null $prior_settings): boolSave a settings array, optionally snapshotting changed prior settings. Parameter Type Default Description $settingsarray— Settings to persist. $prior_settings?array=null— Prior settings to snapshot when changed.
Return: bool — Settings_Store write result.
publicstatic restore_snapshot()
public static function restore_snapshot(): ?arrayRestore the prior settings snapshot through Settings_Store.
Return: array|null — Restored settings, or null when no valid restore occurred.