Yoast\WP\SEO\Services\Health_Check
Ryte_Check::get_result()
Returns the WordPress-friendly health check result.
{} Это метод класса: Ryte_Check{}
Хуков нет.
Возвращает
Строку[]
. The WordPress-friendly health check result.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_result();
Код Ryte_Check::get_result() Ryte Check::get result Yoast 19.2
protected function get_result() { if ( ! $this->runner->should_run() ) { return []; } if ( $this->runner->got_response_error() ) { $error_response = $this->runner->get_error_response(); if ( $error_response === null ) { return $this->reports->get_unknown_indexability_result(); } return $this->reports->get_response_error_result( $error_response ); } if ( $this->runner->has_unknown_indexability() ) { return $this->reports->get_unknown_indexability_result(); } if ( ! $this->runner->is_successful() ) { return $this->reports->get_not_indexable_result(); } return $this->reports->get_success_result(); }