Modify the aggregation filters returned by get_filters(). Useful if you are setting custom filters outside of the supported filters (taxonomy, post_type etc.) and want to hook them up so they’re returned when you call `get_filters()`.
Parameters
- $aggregation_data
array The array of filters keyed on label.
- $query
WP_Query The WP_Query object.
Changelog
- Introduced in Jetpack 6.9.0