WC_Admin_Notices::has_notice()
See if a notice is being shown.
Method of the class: WC_Admin_Notices{}
No Hooks.
Return
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 9.5.1
public static function has_notice( $name ) { return in_array( $name, self::get_notices(), true ); }