Yoast\WP\SEO\Services\Health_Check

Ryte_Reports::get_response_error_result()publicYoast 1.0

Returns the result for when the health check got an error response from Ryte.

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

Хуков нет.

Возвращает

Строку[]. The message as a WordPress site status report.

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

$Ryte_Reports = new Ryte_Reports();
$Ryte_Reports->get_response_error_result( $response_error );
$response_error(массив) (обязательный)
The error response from Ryte.

Код Ryte_Reports::get_response_error_result() Yoast 19.2

public function get_response_error_result( $response_error ) {
	return $this->get_report_builder()
		->set_label( __( 'An error occurred while checking whether your site can be found by search engines', 'wordpress-seo' ) )
		->set_status_recommended()
		->set_description( $this->get_response_error_result_description( $response_error ) )
		->set_actions( $this->get_response_error_result_actions() . $this->get_ryte_actions() )
		->build();
}