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 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.