WC_Admin_Notices::has_notice
See if a notice is being shown.
Method of the class: WC_Admin_Notices{}
No Hooks.
Returns
true|false.
Usage
$result = WC_Admin_Notices::has_notice( $name );
- $name(string) (required)
- Notice name.
WC_Admin_Notices::has_notice() WC Admin Notices::has notice code WC 10.4.3
public static function has_notice( $name ) {
return in_array( $name, self::get_notices(), true );
}