LLMS_Admin_Notices::has_notice( string $notice_id )
Determine if a notice is already set
Parameters Parameters
- $notice_id
-
(string) (Required) Id of the notice.
Return Return
(boolean)
Source Source
File: includes/admin/class.llms.admin.notices.php
public static function has_notice( $notice_id ) { return in_array( $notice_id, self::get_notices(), true ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.10.0 | Use a strict comparison. |
3.0.0 | Introduced. |