DescriptionDescription
This function allows to render a facet by passing as argument its id and the grid id to filter.
Arguments Arguments
Argument | Type | Description |
id | integer | Facet id |
grid | integer|string | Grid id or template id/name to filter |
style | integer | Style id |
ExampleExample
PHP
functions.php
// Render facet id 1 to filter grid id 2.
wpgb_render_facet(
[
'id' => 1, // Facet id.
'grid' => 2, // Grid or template id.
'style' => 1234, // Style id.
]
);