Yoast\WP\SEO\General\User_Interface

General_Page_Integration::is_task_list_opt_in_notification_seenprivateYoast 1.0

Gets if the llms.txt opt-in notification has been seen.

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

Хуков нет.

Возвращает

true|false. True if the notification has been seen, false otherwise.

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

// private - только в коде основоного (родительского) класса
$result = $this->is_task_list_opt_in_notification_seen(): bool;

Код General_Page_Integration::is_task_list_opt_in_notification_seen() Yoast 26.9

private function is_task_list_opt_in_notification_seen(): bool {
	$current_user_id = $this->user_helper->get_current_user_id();
	return (bool) $this->user_helper->get_meta( $current_user_id, '_yoast_wpseo_task_list_opt_in_notification_seen', true );
}