Yoast\WP\SEO\Services\Health_Check

Ryte_Runner::has_unknown_indexability()publicYoast 1.0

Checks if the site's indexability is unknown.

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

Хуков нет.

Возвращает

true|false. Returns true if the site indexability is unknown even though getting a response from Ryte was successful.

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

$Ryte_Runner = new Ryte_Runner();
$Ryte_Runner->has_unknown_indexability();

Код Ryte_Runner::has_unknown_indexability() Yoast 19.2

public function has_unknown_indexability() {
	if ( ! $this->could_fetch() ) {
		return true;
	}

	$ryte_status = $this->ryte_option->get_status();

	if ( $ryte_status === WPSEO_Ryte_Option::IS_INDEXABLE ) {
		return false;
	}

	if ( $ryte_status === WPSEO_Ryte_Option::IS_NOT_INDEXABLE ) {
		return false;
	}

	// This return statement should never be reached.
	return true;
}