Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-community-events.php: WP_Community_Events::get_events() | Gets data about events near a particular location. |
Test if two pairs of latitude/longitude coordinates match each other.
(array) (Required) The first pair, with indexes 'latitude' and 'longitude'.
(array) (Required) The second pair, with indexes 'latitude' and 'longitude'.
(bool) True if they match, false if they don't.
File: wp-admin/includes/class-wp-community-events.php
protected function coordinates_match( $a, $b ) { if ( ! isset( $a['latitude'], $a['longitude'], $b['latitude'], $b['longitude'] ) ) { return false; } return $a['latitude'] === $b['latitude'] && $a['longitude'] === $b['longitude']; }
Version | Description |
---|---|
4.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_community_events/coordinates_match