APP_Notices::add( string $code, string $message, string $type = 'error' )
Enqueues a new notice message into the notices array
Package
Description Description
Parameters Parameters
- $code
(string) (Required) The notice error code
- $message
(string) (Required) The message to be displayed
- $type
(string) (Optional) (optional) The notice type. Default is 'error' but can be any string
Default value: 'error'
Return Return
(array) The enqueued notices array