# Abstract_Settings::sanitize()

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.

```php
sanitize( array $input ): array
```

## Parameters

- `$input` (array<string, mixed>) Raw submitted values keyed by field id.

## Return

`array<string, mixed>` Sanitized values ready for storage.

## Changelog

| Version | Description |
| --- | --- |
| 1.3.0 | Updated |
