WordPress at Your Fingertips
function is not described

WC_Admin_Notices::has_notice() public WC 1.0

See if a notice is being shown.

{} It's a 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.

Code of WC_Admin_Notices::has_notice() WC 5.9.0

public static function has_notice( $name ) {
	return in_array( $name, self::get_notices(), true );
}