$notices
$notices : array
An array of notices.
The Admin_Notice class, responsible for creating admin notices.
Each notice is a new instance of the object.
add(string $id, string $title, string $message, array $options = array()) : void
Add a notice.
string | $id | A unique ID for this notice. Can contain lowercase characters and underscores. |
string | $title | The title for our notice. |
string | $message | The message for our notice. |
array | $options | An array of additional options to change the defaults for this notice. See Notice::__constructor() for details. |
get(string $id) : \WPTRT\AdminNotices\Notice|null
Get a single notice.
string | $id | The unique ID of the notice we want to retrieve. |