Yoast\WP\SEO\Services\Health_Check

Curl_Reports::get_my_yoast_api_not_reachable_result()publicYoast 1.0

Returns the message for when the health check was unable to reach the MyYoast API.

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

Хуков нет.

Возвращает

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

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

$Curl_Reports = new Curl_Reports();
$Curl_Reports->get_my_yoast_api_not_reachable_result();

Код Curl_Reports::get_my_yoast_api_not_reachable_result() Yoast 19.2

public function get_my_yoast_api_not_reachable_result() {
	return $this->get_report_builder()
		/* translators: %1$s expands to 'Yoast'. */
		->set_label( sprintf( __( '%1$s premium plugins cannot update', 'wordpress-seo' ), 'Yoast' ) )
		->set_status_critical()
		->set_description( $this->get_my_yoast_api_not_reachable_description() )
		->build();
}