coordinates_match example


            if ( ! empty( $response_body['location']['ip'] ) ) {
                $response_body['location']['ip'] = $request_args['body']['ip'];
            }

            /* * The API doesn't return a description for latitude/longitude requests, * but the description is already saved in the user location, so that * one can be used instead. */
            if ( $this->coordinates_match( $request_args['body']$response_body['location'] ) && empty( $response_body['location']['description'] ) ) {
                $response_body['location']['description'] = $this->user_location['description'];
            }

            /* * Store the raw response, because events will expire before the cache does. * The response will need to be processed every page load. */
            $this->cache_events( $response_body$expiration );

            $response_body['events'] = $this->trim_events( $response_body['events'] );

            
Home | Imprint | This part of the site doesn't use cookies.