Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-admin/includes/class-wp-community-events.php

WP_Community_Events::maybe_log_events_response()

Method: Logs responses to Events API requests.

Source: wp-admin/includes/class-wp-community-events.php:514

Used by 0 functions | Uses 2 functions

WP_Community_Events::format_event_data_time()

Method: Adds formatted date and time items for each event in an API response.

Source: wp-admin/includes/class-wp-community-events.php:383

Used by 0 functions | Uses 6 functions

WP_Community_Events::trim_events()

Method: Prepares the event list for presentation.

Source: wp-admin/includes/class-wp-community-events.php:466

Used by 2 functions | Uses 1 function

WP_Community_Events

Class: Class WP_Community_Events.

Source: wp-admin/includes/class-wp-community-events.php:18

Used by 0 functions | Uses 0 functions

WP_Community_Events::__construct()

Method: Constructor for WP_Community_Events.

Source: wp-admin/includes/class-wp-community-events.php:54

Used by 2 functions | Uses 1 function

WP_Community_Events::get_events()

Method: Gets data about events near a particular location.

Source: wp-admin/includes/class-wp-community-events.php:91

Used by 0 functions | Uses 14 functions

WP_Community_Events::get_request_args()

Method: Builds an array of args to use in an HTTP request to the w.org Events API.

Source: wp-admin/includes/class-wp-community-events.php:185

Used by 1 function | Uses 2 functions

WP_Community_Events::get_unsafe_client_ip()

Method: Determines the user’s actual IP address and attempts to partially anonymize an IP address by converting it to a network ID.

Source: wp-admin/includes/class-wp-community-events.php:241

Used by 2 functions | Uses 1 function

WP_Community_Events::coordinates_match()

Method: Test if two pairs of latitude/longitude coordinates match each other.

Source: wp-admin/includes/class-wp-community-events.php:291

Used by 1 function | Uses 0 functions

WP_Community_Events::get_events_transient_key()

Method: Generates a transient key based on user location.

Source: wp-admin/includes/class-wp-community-events.php:312

Used by 2 functions | Uses 0 functions

WP_Community_Events::cache_events()

Method: Caches an array of events data from the Events API.

Source: wp-admin/includes/class-wp-community-events.php:333

Used by 1 function | Uses 3 functions

WP_Community_Events::get_cached_events()

Method: Gets cached events.

Source: wp-admin/includes/class-wp-community-events.php:355

Used by 1 function | Uses 3 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry