WPSEO_Dismissible_Notification::is_notice_dismissed()protectedYoast 1.0

Checks whether the notification has been dismissed.

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

Хуков нет.

Возвращает

true|false. True when notification is dismissed.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_notice_dismissed();

Код WPSEO_Dismissible_Notification::is_notice_dismissed() Yoast 22.4

protected function is_notice_dismissed() {
	return get_user_meta( get_current_user_id(), 'wpseo-remove-' . $this->notification_identifier, true ) === '1';
}