GC_Community_Events::get_cached_events()
最后更新于:2021-11-26 22:52:29
GC_Community_Events::get_cached_events()Gets cached events.
响应
(array|false) An array containing location
and events
items on success, false on failure.
源文件
文件: gc-admin/includes/class-gc-community-events.php
public function get_cached_events() {
$cached_response = get_site_transient( $this->get_events_transient_key( $this->user_location ) );
if ( isset( $cached_response['events'] ) ) {
$cached_response['events'] = $this->trim_events( $cached_response['events'] );
}
return $cached_response;
}