Automattic\WooCommerce\Internal\Admin\Notes
CouponPageMoved::has_dismissed_note()
Whether any notes have been dismissed by the user previously.
Метод класса: CouponPageMoved{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = CouponPageMoved::has_dismissed_note();
Код CouponPageMoved::has_dismissed_note() CouponPageMoved::has dismissed note WC 9.3.3
protected static function has_dismissed_note() { $note = Notes::get_note_by_name( self::NOTE_NAME ); if ( ! $note ) { return false; } return ! $note->get_is_deleted(); }