WP_Community_Events::get_cached_events

Advertisement

Summery Summery

Gets cached events.

Syntax Syntax

WP_Community_Events::get_cached_events()

Return Return

(array|false) An array containing location and events items on success, false on failure.

Source Source

File: wp-admin/includes/class-wp-community-events.php

	public function get_cached_events() {
		$cached_response = get_site_transient( $this->get_events_transient_key( $this->user_location ) );
		$cached_response = $this->trim_events( $cached_response );

		return $this->format_event_data_time( $cached_response );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.8.0 Introduced.

Advertisement

Leave a Reply