Core Function
View Source on Trac ↗ get_settings_errors()
get_settings_errors( mixed $setting = '', mixed $sanitize = false ) Fetches settings errors registered by add_settings_error().
Parameters 0 required
| Name / Type | Description |
|---|---|
| $setting string | Optional. Slug title of a specific setting whose errors you want. |
| $sanitize bool | Optional. Whether to re-sanitize the setting value before returning errors. |
Return Value
(array[])
array[] {
Array of settings error arrays.
Function Information
Since Version
3.0.0
Source File
wp-admin/includes/template.php
Advertisement