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: modules/search/class.jetpack-search.php

View in GitHub

Parameters

$aggregation_data

(array) The array of filters keyed on label.

$query

(WP_Query) The WP_Query object.


Changelog

Since: Jetpack 6.9.0


Notes

Have a note to contribute?

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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