Add a layer based on given data array
static
mixed
add_layer
(array $layer_data)
-
array
$layer_data: Data of the layer
Add layers based on given data object
static
array
add_layers
(array $layers_data)
-
array
$layers_data: Data of the marker
Add a marker based on given data array
static
mixed
add_marker
(array $marker_data)
-
array
$marker_data: Data of the marker
Add markers based on given data object
static
array|WP_Error
add_markers
( $markers_data, array $marker_data)
-
array
$marker_data: Data of the marker
-
$markers_data
returns the number of layers available
static
int
count_layers
()
returns the number of markers available
static
int
count_markers
()
Checks the permissions for the current user. Returns true if the current user has any of the specified capabilities.
IMPORTANT: Call this before calling any of the other API Functions as permission checks are not performed at lower levels.
static
bool
current_user_can_any
(array|string $capabilities)
-
array|string
$capabilities: An array of capabilities, or a single capability
Deletes the layer for a given layer ID
static
mixed
delete_layer
(int $layer_id)
-
int
$layer_id: The ID of the layer
Deletes the layers for a given Layers IDs
static
boolean
delete_layers
([array $layer_ids = array()])
-
array
$layer_ids: The IDs of the Layers
Deletes the marker for a given Marker ID
static
mixed
delete_marker
(int $marker_id)
-
int
$marker_id: The ID of the Marker
Deletes the markers for a given Markers IDs
static
boolean
delete_markers
([array $marker_ids = array()])
-
array
$marker_ids: The IDs of the Markers
Returns the layer object for a given Layer ID
static
mixed
get_layer
(int $layer_id)
-
int
$layer_id: The ID of the Layer
Returns the marker object for a given Marker ID
static
mixed
get_marker
(int $marker_id)
-
int
$marker_id: The ID of the Marker
Search layers object for a given args.
static
array
search_layers
(array $args)
-
array
$args: The parameters of the search
Search markers object for a given args.
static
array
search_markers
(array $args)
-
array
$args: The parameters of the search
Update a layer based on given data object
static
boolean
update_layer
(array $layer_data)
-
array
$layer_data: Data of the layer
Update layers based on given data object
static
array|WP_Error
update_layers
(array $layers_data)
-
array
$layers_data: Data of the layers
Update a marker based on given data object
static
boolean
update_marker
(array $marker_data)
-
array
$marker_data: Data of the marker
Add markers based on given data object
static
array|WP_Error
update_markers
( $markers_data, array $marker_data)
-
array
$marker_data: Data of the marker
-
$markers_data