WPSEO_Statistics_Service::get_transient()
Gets the statistics transient value. Returns array if transient wasn't set.
Метод класса: WPSEO_Statistics_Service{}
Хуков нет.
Возвращает
Массив|Разное
. Returns the transient or an empty array if the transient doesn't exist.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_transient();
Код WPSEO_Statistics_Service::get_transient() WPSEO Statistics Service::get transient Yoast 24.7
private function get_transient() { $transient = get_transient( self::CACHE_TRANSIENT_KEY ); if ( $transient === false ) { return []; } return $transient; }