Automattic\WooCommerce\Internal\Admin\Notes

CouponPageMoved::has_unactioned_note()protected staticWC 1.0

Find notes that have not been actioned.

Метод класса: CouponPageMoved{}

Хуков нет.

Возвращает

true|false.

Использование

$result = CouponPageMoved::has_unactioned_note();

Код CouponPageMoved::has_unactioned_note() WC 7.3.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';
}