X Buy Features Demo (Cars) Demo (Power Plants) Demo (Map) Showcase Add-ons Docs Changelog

JS Variables

FWP

The FWP object gets passed to the server on each refresh. It contains all the necessary information for generating the template, facets, pagination, etc.
[fwp_variable]

Browse to our Cars demo, open your browser console, and type FWP to see actual data.

FWP Methods

[fwp_methods]

FWP_HTTP

All requests happen via AJAX. For URI and GET variables to be available, they’re stored in FWP_HTTP. Use $this->http_params within your FacetWP template to access.
[fwp_http_variable]