Action: bricks/query/query_api_response
Runs after a Query API request is performed. This action allows you to inspect or process the response from the API query.
Parameters
Section titled “Parameters”$response(array|WP_Error): The response from the API request.$element_id(string): The element ID associated with the query.
Example usage
Section titled “Example usage”add_action( 'bricks/query/query_api_response', function( $response, $element_id ) { if ( is_wp_error( $response ) ) { error_log( 'Query API Error for element ' . $element_id . ': ' . $response->get_error_message() ); return; }
// Process successful response // $data = $response; // Do something with $data}, 10, 2 );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.