__construct() __construct(string $id, string $prefix, $scope = 'global') Constructor. Parameters string $id A unique ID for this notice. Can contain lowercase characters and underscores. string $prefix The prefix that will be used for the option/user-meta. $scope
is_dismissed() is_dismissed() : boolean Check if the notice has been dismissed or not. Returns boolean
ajax_maybe_dismiss_notice() ajax_maybe_dismiss_notice() : void Run check to see if we need to dismiss the notice. If all tests are successful then call the dismiss_notice() method.