Filter: bricks/query/result_start
Filters the starting index used when slicing the query results. This allows you to control where the displayed results begin, useful for custom offsets or pagination.
Parameters
Section titled “Parameters”$start(int): The starting index for the result slice.$query(object): The Bricks Query instance.
Example usage
Section titled “Example usage”add_filter( 'bricks/query/result_start', function( $start, $query ) { // Example: Offset results by 1 for a specific query ID if ( $query->id === 'my_offset_query' ) { return $start + 1; }
return $start;}, 10, 2 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.