Skip to content
Get Bricks

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.

  • $start (int): The starting index for the result slice.
  • $query (object): The Bricks Query instance.
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 );