Clanbite Since 1.5.0

save_from_input( array $input ): array<string, mixed>

Save only the messages that were sent, on top of what is already stored.

Two things must survive a save: wording another administrator saved a moment ago (the admin sends just the fields that were edited, so those are merged into the latest option rather than replacing it with a stale copy), and wording for messages that are not registered right now (an extension that is switched off), so it is back when the extension is.

public

Class: Kernowdev\Clanbite\Admin\Messages_Settings

Parameters

$input (array<string, mixed>) Required

Field id => text; fields left out keep their stored value.

Returns

array<string, mixed> The option as stored.

Defined in inc/admin/class-messages-settings.php

Changelog

VersionDescription
1.5.0Introduced.