Skip to main content

Filter: gk/foundation/notices/evaluation/notice

Filters whether a notice should be displayed.

Return true to include, false to exclude, or null to continue normal evaluation.

Parameters

NameTypeDescription
$should_displaybool|nullWhether to display the notice. Default null.
$notice\NoticeInterfaceThe notice being evaluated_notices.
$contextstring|nullCurrent admin context.
$user_statearrayUser state data.

Since

  • 1.3.0

Source

Defined in Notices/NoticeEvaluator.php at line 95