Core Function
View Source on Trac ↗ settings_errors()
settings_errors( mixed $setting = '', mixed $sanitize = false, mixed $hide_on_update = false ) Displays settings errors registered by add_settings_error().
Parameters 1 required
| Name / Type | Description |
|---|---|
| $setting string | Optional slug title of a specific setting whose errors you want. |
| $sanitize bool | Whether to re-sanitize the setting value before returning errors. |
| bool | $hide_on_update If set to true errors will not be shown if the settings page has already been submitted. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
3.0.0
Source File
wp-admin/includes/template.php
Advertisement