Filter: bricks/query/fake_result
Filters the results of a “fake” query execution. Fake queries are auxiliary queries run by Bricks (e.g., to count total results for filters without pagination) that mirror the main query but with modified parameters (like posts_per_page = -1).
Parameters
Section titled “Parameters”$results(array): The query results (e.g., array of WP_Post objects or IDs).$query(object): The Bricks Query instance.
Example usage
Section titled “Example usage”add_filter( 'bricks/query/fake_result', function( $results, $query ) { // Example: Manipulate the results for a specific query ID if ( $query->id === 'my_filtered_loop' ) { // Custom logic to modify results }
return $results;}, 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.