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

WPSEO_Ryte_Option::should_be_fetched() public Yoast 1.0

Determines whether the indexability status should be fetched.

If LAST_FETCH isn't set, we assume the indexability status hasn't been fetched yet and return true. Then, we check whether the last fetch is within the FETCH_LIMIT time interval (15 seconds) to avoid too many consecutive API calls.

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

Хуков нет.

Возвращает

true|false. Whether the indexability status should be fetched.

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

$WPSEO_Ryte_Option = new WPSEO_Ryte_Option();
$WPSEO_Ryte_Option->should_be_fetched();

Код WPSEO_Ryte_Option::should_be_fetched() Yoast 16.2

<?php
public function should_be_fetched() {
	if ( ! isset( $this->ryte_option[ self::LAST_FETCH ] ) ) {
		return true;
	}

	return ( ( time() - $this->ryte_option[ self::LAST_FETCH ] ) > self::FETCH_LIMIT );
}