WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

WPSEO_Health_Check_Ryte::response_error() protected Yoast 1.0

Adds the content for a failed Ryte API request.

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

Хуков нет.

Возвращает

null. Ничего.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->response_error( $response );
$response(массив) (обязательный)
The error details.

Код WPSEO_Health_Check_Ryte::response_error() Yoast 16.2

<?php
protected function response_error( $response ) {
	$this->label          = esc_html__( 'An error occurred while checking whether your site can be found by search engines', 'wordpress-seo' );
	$this->status         = self::STATUS_RECOMMENDED;
	$this->badge['color'] = 'red';

	$this->description = sprintf(
		'%s<br><br>%s',
		sprintf(
			/* translators: %1$s: Expands to 'Ryte', %2$s: Expands to 'Yoast SEO'. */
			esc_html__( '%1$s offers a free indexability check for %2$s users. The request to %1$s to check whether your site can be found by search engines failed due to an error.', 'wordpress-seo' ),
			'Ryte',
			'Yoast SEO'
		),
		sprintf(
			/* translators: 1: The Ryte response raw error code, if any. 2: The error message. 3: The WordPress error code, if any. */
			__( 'Error details: %1$s %2$s %3$s', 'wordpress-seo' ),
			$response['raw_error_code'],
			$response['message'],
			$response['wp_error_code']
		)
	);

	$this->actions = sprintf(
		/* translators: %1$s: Opening tag of the link to the Yoast help center, %2$s: Link closing tag. */
		esc_html__( 'If this is a live site, %1$sit is recommended that you figure out why the check failed.%2$s', 'wordpress-seo' ),
		'<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/onpagerequestfailed' ) ) . '" target="_blank">',
		WPSEO_Admin_Utils::get_new_tab_message() . '</a>'
	);
	$this->actions .= '<br /><br />';

	$this->add_ryte_link();
}