Automattic\WooCommerce\Internal\Admin\Notes

CouponPageMoved::has_dismissed_note()protected staticWC 1.0

Whether any notes have been dismissed by the user previously.

Method of the class: CouponPageMoved{}

No Hooks.

Return

true|false.

Usage

$result = CouponPageMoved::has_dismissed_note();

CouponPageMoved::has_dismissed_note() code WC 8.7.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();
}