Automattic\WooCommerce\Internal\Admin\Notes

CouponPageMoved::has_dismissed_note()protected staticWC 1.0

Whether any notes have been dismissed by the user previously.

{} It's a method of the class: CouponPageMoved{}

No Hooks.

Return

true|false.

Usage

$result = CouponPageMoved::has_dismissed_note();

Code of CouponPageMoved::has_dismissed_note() WC 7.1.0

protected static function has_dismissed_note() {
	$note = Notes::get_note_by_name( self::NOTE_NAME );

	if ( ! $note ) {
		return false;
	}

	return ! $note->get_is_deleted();
}