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

WPSEO_Health_Check_Ryte::run() public Yoast 1.0

Runs the test.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Health_Check_Ryte = new WPSEO_Health_Check_Ryte();
$WPSEO_Health_Check_Ryte->run();

Код WPSEO_Health_Check_Ryte::run() Yoast 16.2

<?php
public function run() {
	// If Ryte is disabled or the blog is not public or development mode is on, don't run code.
	if ( ! $this->should_run() ) {
		return;
	}

	/*
	 * Run the request to fetch the indexability status. Set last fetch time.
	 * Update the Ryte option status. Will run a new request only if the last
	 * one is not within the `WPSEO_Ryte_Option::FETCH_LIMIT` time interval.
	 */
	$wpseo_ryte = new WPSEO_Ryte();
	$wpseo_ryte->fetch_from_ryte();

	// Get the Ryte API response to properly handle errors.
	$response = $wpseo_ryte->get_response();

	if ( is_array( $response ) && isset( $response['is_error'] ) ) {
		$this->response_error( $response );

		return;
	}

	// The request was successful: get the updated Ryte option.
	$ryte_option = $this->get_ryte_option();

	switch ( $ryte_option->get_status() ) {
		case WPSEO_Ryte_Option::IS_NOT_INDEXABLE:
			$this->is_not_indexable_response();
			break;
		case WPSEO_Ryte_Option::IS_INDEXABLE:
			$this->is_indexable_response();
			break;
		case WPSEO_Ryte_Option::NOT_FETCHED:
		default: // WPSEO_Ryte_Option::CANNOT_FETCH.
			$this->unknown_indexability_response();
			break;
	}
}