Admin_Notices
final class Admin_Notices
Utility functions class to hold useful chunks of code we find ourselves often reusing.
Constants
| NOTICE_QUEUE_TRANSIENT |
|
Methods
static
static
success(string $message)
A function to queue a success admin notice.
static
info(string $message)
A function to queue an info admin notice.
static
warning(string $message)
A function to queue a warning admin notice.
static
error(string $message)
A function to queue an error warning admin notice.
static
print_notices()
Print all of the Admin Notices and remove the transient.
Details
at line 35
final static
add_notice(Admin_Notice $Notice)
Add an Admin Notice to the global queue.
at line 51
final static
success(string $message)
A function to queue a success admin notice.
at line 60
final static
info(string $message)
A function to queue an info admin notice.
at line 69
final static
warning(string $message)
A function to queue a warning admin notice.
at line 78
final static
error(string $message)
A function to queue an error warning admin notice.
at line 85
final static
print_notices()
Print all of the Admin Notices and remove the transient.