sanitize( array $input ): array<string, mixed>Sanitize a submitted settings payload field by field.
Uses the field's sanitize callable when set, otherwise a default per type. A field absent from the payload is sanitized as null (an unchecked checkbox becomes false); self::get_defaults() only fills keys that are not defined fields.
public
Class: Kernowdev\Clanbite\Extensions\Abstract_Settings
Parameters
$input(array<string, mixed>) RequiredRaw submitted values keyed by field id.
Returns
array<string, mixed> Sanitized values ready for storage.
Defined in inc/extensions/class-extension-admin-settings.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |