add_dismissible_message()
public static function add_dismissible_message( $text, $key, $type='warning', $capabilities=false, $sticky=false, $page=null )
Add a dismissible message to the array of dismissible messages.
Since: 2.0
Source: common.php:6080
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$text | string | ||
$key | string | ||
$type | string | 'warning' | |
$capabilities | string | array | bool | false | A string containing a capability. Or an array or capabilities. Or FALSE for no capability check. |
$sticky | bool | false | Whether to keep displaying the message until it's dismissed. |
$page | string | null | null | The page on which to display the sticky message. NULL will display on all pages available. |