Yoast\WP\SEO\Alerts\Application\Indexables_Disabled

Indexables_Disabled_Alert::get_indexables_disabled_notificationprivateYoast 1.0

Builds the indexables-disabled notification.

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

Хуков нет.

Возвращает

Yoast_Notification. The indexables-disabled notification.

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

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

Код Indexables_Disabled_Alert::get_indexables_disabled_notification() Yoast 27.7

private function get_indexables_disabled_notification(): Yoast_Notification {
	$message = $this->get_message();

	return new Yoast_Notification(
		$message,
		[
			'id'           => self::NOTIFICATION_ID,
			'type'         => Yoast_Notification::WARNING,
			'capabilities' => [ 'wpseo_manage_options' ],
		],
	);
}