The Filter API provides resources to create new smart filters for any post type. Quickly add meta filters or create REST filters and provide your own query logic in an additional REST resource.
Create meta or REST filters to find values unique to your data. Search, select and equate values based on the type of data you’re looking for. Select from a variety of UI options like drop downs, comparison operators, and date pickers. All filters can be combined to narrow your query.
Meta filters provide the ability to quickly filter meta fields in your data. Or use REST filters to enable completely custom filtering within any post type’s REST requests. Pass custom query variables, check them in a secondary filter and modify the full database query to search for specific data points.