Action: bricks/render_query_result/start
Runs at the start of the AJAX query result rendering process (query_result endpoint - used for filters, live search, etc.). This action allows you to execute custom logic before the query result content is generated.
Parameters
Section titled “Parameters”$request_data(array): The request data parameters (e.g., queryElementId, postId, filters, etc.).
Example usage
Section titled “Example usage”add_action( 'bricks/render_query_result/start', function( $request_data ) { // Access request data // $filters = $request_data['filters'] ?? [];
// Example: Switch language for multilingual plugins // if ( isset( $request_data['lang'] ) ) { // // Switch language logic // }} );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.