Filter: bricks/query_api/headers
Filters the headers used by a Query API element request before Bricks sends it.
Parameters
Section titled “Parameters”$headers(array): HTTP request headers.$element_id(string): The Query API element ID.$query_api(object): The Query API integration instance.
Example usage
Section titled “Example usage”add_filter( 'bricks/query_api/headers', function( $headers, $element_id, $query_api ) { $headers['X-Client'] = 'my-site';
return $headers;}, 10, 3 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.