Function yourprefix_options_page_message_callback
Callback to define the optionss-saved message.
License: GPL v2.0 (or later)
Type: bool $is_options_page Whether current page is this options page.
Type: bool $should_notify Whether options were saved and we should be notified.
Type: bool $is_updated Whether options were updated with save (or stayed the same).
Type:
string $setting For add_settings_error(), Slug title of the setting to which this error applies.
Type:
string $code For add_settings_error(), Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
Type:
string $message For add_settings_error(), The formatted message text to display
to the user (will be shown inside styled <div>
and <p>
tags).
Will be 'Settings updated.' if $is_updated is true, else 'Nothing to update.'
Type:
string $type For add_settings_error(), Message type, controls HTML class. Accepts 'error', 'updated', '', 'notice-warning', etc. Will be 'updated' if $is_updated is true, else 'notice-warning'. }
Located at example-functions.php
Parameters summary
|
$cmb |
The CMB2 object. |
array |
$args |
<p>{ An array of message arguments</p> |