Filter: bricks/query/result_start
Filter: bricks/query/result_start
Section titled “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 page helpful?