Filter: bricks/query/result_count
This filter allows you to modify the query result count (@since 1.8).
add_filter( 'bricks/query/result_count', function( $result_count, $query_obj ) { // Return: Element ID is not "lbsijo", nor is it a post query if( $query_obj->element_id !== 'lbsijo' || $query_obj->object_type !== 'post' ) { return $result_count; }
// Perform your logic here // Use $query_obj->query_result to access the query result $new_count = 123; return $new_count;}, 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.