Custom REST route that returns ElasticPress facet settings for the editor / Interactivity bootstrap.
Base path: /wp-json/prc-api/v3/
Source: includes/class-rest-api.php
Auth summary
| Access | Route |
|---|---|
Public (permission_callback __return_true) | GET /facets/get-settings |
GET /facets/get-settings
Returns ElasticPress_Middleware::get_facets_settings().
Reference
1 field
Query parameters
Typed options, defaults, and constraints in one scannable reference.
-
templateSlugstring required -
Site Editor template slug used to decide which facets middleware should be enabled.
No fields match this filter.
Request
GET
/wp-json/prc-api/v3/facets/get-settings?templateSlug=archive
HeadersKey: value
Accept application/json
Response
200 OK
Response headers
Key: value
BodyJSON
{
"/*": "Facet settings object from ElasticPress_Middleware::get_facets_settings()"
}