Store Locator Plus REST API Endpoints

Store Locator Plus for WordPress has a built-in REST API.  Here are the end points.

Locations

Add

Endpoint: /wp-json/store-locator-plus/v2/locations
Method: EDITABLE (POST, PUT, PATCH)
Required Permission: user_can_manage_slp (admin users by default)
Required Arguments: sl_store (integer)

Delete

Endpoint: /wp-json/store-locator-plus/v2/locations/<id>
URL Parameters: <id> integer of existing location ID
Method: DELETABLE (DELETE)
Required Permission: manage_slp_user (admin users by default)

Get List

Endpoint: /wp-json/store-locator-plus/v2/locations
Method: READABLE (GET)

Update

Endpoint: /wp-json/store-locator-plus/v2/locations/<id>
URL Parameters: <id> integer of existing location ID
Method: EDITABLE (POST, PUT, PATCH)
Required Permission: manage_slp_user (admin users by default)

Options

Get

Endpoint: /wp-json/store-locator-plus/v2/options/<slug>
URL Parameters: <slug> string of registered smart option slug
Method: READABLE (GET)