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'


Top ↑

Return Return

(array) The enqueued notices array


Premium WordPress Apps

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.