Overview

Namespaces

  • None
  • WPGMZA
    • Integration
    • Selector

Classes

  • AutoLoader
  • Crud
  • DOMDocument
  • DOMElement
  • Factory
  • GDPRCompliance
  • GoogleGeocoder
  • GoogleMap
  • GoogleMapsAPILoader
  • GoogleMapsLoader
  • LatLng
  • Map
  • MapsEngineDialog
  • Marker
  • ModalDialog
  • NominatimGeocodeCache
  • OLLoader
  • Plugin
  • RestAPI
  • ScriptLoader
  • Strings

Functions

  • create_marker_instance_delegate
  • create_plugin_instance
  • query_nominatim_cache
  • store_nominatim_cache
  • Overview
  • Namespace
  • Class

Class RestAPI

This class facilitates all communication between the client and any server side modules which can be interacted with through the WordPress REST API.

Namespace: WPGMZA
Located at class.rest-api.php
Methods summary
public
# __construct( )

Constructor

Constructor

public
# onEnqueueScripts( )

Enqueues the wp-api script, required to use the Rest API client side.

Enqueues the wp-api script, required to use the Rest API client side.

public
# onRestAPIInit( )

Callback for the rest_api_init action, this function registers the plugins REST API routes.

Callback for the rest_api_init action, this function registers the plugins REST API routes.

public mixed
# markers( WP_REST_Request $request )

Callback for the /markers REST API route.

Callback for the /markers REST API route.

Parameters

$request
REST request.

Returns

mixed
Where an ID is specified on the URL, a single marker is returned. Where no ID is specified, an array of all markers are returned.
Constants summary
string NS

Const

The plugins REST API namespace
# 'wpgmza/v1'
API documentation generated by ApiGen