Filter: bricks/frontend/render_loop
Filter: bricks/frontend/render_loop
Section titled “Filter: bricks/frontend/render_loop”Filters the HTML output of a query loop iteration. This allows you to modify the content of each item rendered within a loop.
Parameters
Section titled “Parameters”$output(string): The rendered HTML of the loop item.$element(array): The element data array.$container(object): The container element instance managing the loop.
Example usage
Section titled “Example usage”add_filter( 'bricks/frontend/render_loop', function( $output, $element, $container ) { // Example: Wrap each loop item in a custom div return '<div class="my-custom-loop-wrapper">' . $output . '</div>';}, 10, 3 ); Was this page helpful?