apply_filters ( 'jetpack_search_get_filters', array $aggregation_data, WP_Query $query )

Modify the aggregation filters returned by get_filters().<p>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 <code>get_filters()</code>.</p>

Source file: jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php

View in GitHub



(array) The array of filters keyed on label.


(WP_Query) The WP_Query object.


Since: Jetpack 6.9.0


Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s