Action: bricks/query/before_loop
If you are creating a custom query loop or a custom plugin, you might want to perform some additional tasks like setting/resetting specific data before the loop runs. (@since 1.7.2)
// Perform certain action before the loop of query element oklvcqadd_action( 'bricks/query/before_loop', function( $query, $args ) { if ( $query->element_id !== 'oklvcq' ) { return; } // $args is an array of the element settings // Perform your own logic here
}, 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.