Automattic\WooCommerce\Internal\Admin\Notes

CouponPageMoved::has_unactioned_note()protected staticWC 1.0

Find notes that have not been actioned.

Method of the class: CouponPageMoved{}

No Hooks.

Return

true|false.

Usage

$result = CouponPageMoved::has_unactioned_note();

CouponPageMoved::has_unactioned_note() code WC 8.6.1

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

	if ( ! $note ) {
		return false;
	}

	return $note->get_status() === 'unactioned';
}