Automattic\WooCommerce\Internal\Admin\Notes

CouponPageMoved::has_unactioned_note()protected staticWC 1.0

Find notes that have not been actioned.

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

No Hooks.

Return

true|false.

Usage

$result = CouponPageMoved::has_unactioned_note();

Code of CouponPageMoved::has_unactioned_note() WC 7.1.0

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

	if ( ! $note ) {
		return false;
	}

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