Filter: bricks/handle_no_results_children_elements
Determines whether Bricks should run logic to handle children elements displayed when a query loop returns no results (e.g., ensuring scripts/styles are enqueued for “No results” content).
Parameters
Section titled “Parameters”$run(bool): Whether to handle “No results” children logic. Defaults totrueif Query Filters are enabled.
Example usage
Section titled “Example usage”add_filter( 'bricks/handle_no_results_children_elements', function( $run ) { // Example: Always enable this logic, even if native Query Filters are disabled return true;} );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.