Admin_Notice
final class Admin_Notice
A class intended to provide application notifications to the admin users. Built off transients to be one-time use.
Properties
| string | $type | ||
| $message | The message this Notice should display. |
||
| $options | Extra options passed to the Notification. |
Methods
__construct(string $type, string $message, array $options = array())
Construct the Notice.
print()
Print the HTML notice (for use by the 'admin_notices' action hook).
queue_notice()
Add the Notice to the display queue.
static
is_admin_notice($var)
Check whether a variable is an Admin Notice.
Details
at line 52
__construct(string $type, string $message, array $options = array())
Construct the Notice.
at line 61
final
print()
Print the HTML notice (for use by the 'admin_notices' action hook).
at line 68
final
queue_notice()
Add the Notice to the display queue.
at line 77
final static
is_admin_notice($var)
Check whether a variable is an Admin Notice.