Builds an array of args to use in an HTTP request to the w.org Events API.
WP_Community_Events::get_unsafe_client_ip
Determines the user’s actual IP address and attempts to partially anonymize an IP address by converting it to a network ID.
WP_Community_Events::coordinates_match
Test if two pairs of latitude/longitude coordinates match each other.
WP_Community_Events::get_events_transient_key
Generates a transient key based on user location.
Advertisement
WP_Community_Events::cache_events
Caches an array of events data from the Events API.
WP_Community_Events::get_cached_events
Gets cached events.
WP_Community_Events::get_unsafe_client_ip
Determines the user’s actual IP address and attempts to partially anonymize an IP address by converting it to a network ID.
WP_Community_Events::coordinates_match
Test if two pairs of latitude/longitude coordinates match each other.
Advertisement
WP_Community_Events::get_events_transient_key
Generates a transient key based on user location.
WP_Community_Events::cache_events
Caches an array of events data from the Events API.
WP_Community_Events::get_cached_events
Gets cached events.
WP_Community_Events::format_event_data_time
Adds formatted date and time items for each event in an API response.
Advertisement
WP_Community_Events::trim_events
Prepares the event list for presentation.
WP_Community_Events::maybe_log_events_response
Logs responses to Events API requests.
WP_Community_Events::__construct
Constructor for WP_Community_Events.