Fragen\GitHub_Updater\API::get_transient PHP Метод

get_transient() защищенный Метод

Returns site_transient and checks/stores transient id in array.
protected get_transient ( ) : array | boolean
Результат array | boolean
    protected function get_transient()
    {
        $repo = isset($this->type->repo) ? $this->type->repo : 'ghu';
        $transient = 'ghu-' . md5($repo);
        /**
         * Filter to allow advanced caching plugins to control retrieval of transients.
         *
         * @since 6.0.0
         * @return bool
         */
        if (false === apply_filters('ghu_use_remote_call_transients', true)) {
            return false;
        }
        return get_site_transient($transient);
    }