Throw admin notice


Filter the currently given admin notice. This will be an interesting hook if you want to show errors jsut to custom users or you want to remove them completely.

Parameter Type Description
true bool Will return true by default to display the notice.
$content string The description of the notice.
$type string The type of the notice. Possible values: info, success, warning, error
$is_dismissible bool Wether the message should be dismissible or not.
         * Block an admin notice based onn the specified values
        $throwit = apply_filters('wpscont/helpers/throw_admin_notice', true, $content, $type, $is_dismissible);


Was this article helpful?

Related Articles