Action: bricks/render_query_page/start
Action: bricks/render_query_page/start
Section titled “Action: bricks/render_query_page/start”Runs at the start of the AJAX query page rendering process (load_query_page endpoint - used for infinite scroll/pagination). This action allows you to execute custom logic before the query page content is generated.
Parameters
Section titled “Parameters”$request_data(array): The request data parameters (e.g., queryElementId, postId, page, queryVars, etc.).
Example usage
Section titled “Example usage”add_action( 'bricks/render_query_page/start', function( $request_data ) { // Access request data // $page = $request_data['page'] ?? 1;
// Example: Switch language for multilingual plugins // if ( isset( $request_data['lang'] ) ) { // // Switch language logic // }} ); Was this page helpful?