Yoast\WP\SEO\Services\Health_Check
Curl_Check::get_result()
Returns the WordPress-friendly health check result.
{} Это метод класса: Curl_Check{}
Хуков нет.
Возвращает
Строку[]
. The WordPress-friendly health check result.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_result();
Код Curl_Check::get_result() Curl Check::get result Yoast 19.2
protected function get_result() { if ( ! $this->runner->has_premium_plugins_installed() ) { return []; } if ( $this->runner->is_successful() ) { return $this->reports->get_success_result(); } if ( ! $this->runner->has_recent_curl_version_installed() ) { return $this->reports->get_no_recent_curl_version_installed_result(); } if ( ! $this->runner->can_reach_my_yoast_api() ) { return $this->reports->get_my_yoast_api_not_reachable_result(); } return []; }