All features
Cherry Blossom feature
Framework Traits: Admin Notices trait
Queues sanitized notices for the current admin request.
Queues sanitized notices for the current admin request.
Capabilities and extension points
Queues sanitized notices for the current admin request.
Compose with the Hooks trait so notice registration uses add_action().
Queues an admin notice for rendering in the current request.
Allowed markup is sanitized before paragraph formatting. Invalid levels are ignored. Dismissal is a browser UI action, not a persisted preference.
- param string $message Message text or supported markup.
- param string $level Optional. info, warning, error or success. Default info.
- param bool $dismissible Optional. Whether to show a dismiss button. Default false.
Displays the admin messages.
This method is hooked to the admin_notices hook.
Source reference
This editable reference page is based on the PHP documentation in framework/traits/wordpress/trait-admin-notices.php.