WPSEO_Dismissible_Notification::is_notice_dismissed()
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() WPSEO Dismissible Notification::is notice dismissed Yoast 24.1
protected function is_notice_dismissed() { return get_user_meta( get_current_user_id(), 'wpseo-remove-' . $this->notification_identifier, true ) === '1'; }