Yoast\WP\SEO\Services\Health_Check

Ryte_Reports::get_unknown_indexability_description_alert()privateYoast 1.0

Returns an alert for when the health check was unable to determine indexability.

{} Это метод класса: Ryte_Reports{}

Хуков нет.

Возвращает

Строку. An alert for when the health check was unable to determine indexability.

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

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

Код Ryte_Reports::get_unknown_indexability_description_alert() Yoast 19.2

private function get_unknown_indexability_description_alert() {
	/* translators: %1$s: Expands to 'Ryte', %2$s: Link start tag to the Yoast help center, %3$s: Link closing tag. */
	$alert_text    = esc_html__(
		'As the indexability status of your website can only be fetched from %1$s every 15 seconds,
		a first step could be to wait at least 15 seconds and refresh the Site Health page. If that did not help,
		%2$sread more about troubleshooting search engine visibility%3$s.',
		'wordpress-seo'
	);
	$alert_content = sprintf(
		$alert_text,
		'Ryte',
		'<a href="' . esc_url( $this->shortlinker->get( 'https://yoa.st/onpagerequestfailed' ) ) . '" target="_blank">',
		WPSEO_Admin_Utils::get_new_tab_message() . '</a>'
	);

	$alert = new Alert_Presenter( $alert_content, 'info' );
	return $alert->present();
}