Create Admin Notices

wpwhpro/helpers/throw_admin_notice

Description:
We are throwing some admin notices if for example a pagebuilder is activated through our plugin, but it isn’t active at all on the website. It is useful if you want to get rid of our admin notices completely.

Parameter Type Description
true bool If it’s true, the notice will be displayed.
$content string The content of the notice.
$type string Wether the notice is an info, error, warning or success.
$is_dismissible bool True if a Notice is dismissible.

/**
* Block an admin notice based on the specified values
*/
$throwit = apply_filters('wpwhpro/helpers/throw_admin_notice', true, $content, $type, $is_dismissible);

Updated on August 10, 2019

Was this article helpful?

Related Articles