Filter: bricks/query_api/body
Filters the body data used by a Query API element request before Bricks adds it to the HTTP request.
Bricks only builds a body for request methods that support one in the Query API implementation, currently POST.
Parameters
Section titled “Parameters”$body_data(string|array|null): The request body data Bricks has built.$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/body', function( $body_data, $element_id, $query_api ) { return $body_data;}, 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.