Filter: bricks/ajax/get_pages_args
Filters the query arguments used when searching for pages or posts within the Bricks builder (e.g., in link controls or populate content settings).
Parameters
Section titled “Parameters”$query_args(array): Array of arguments passed toget_posts().
Example usage
Section titled “Example usage”add_filter( 'bricks/ajax/get_pages_args', function( $query_args ) { // Example: Exclude specific post IDs from the search results $query_args['post__not_in'] = [ 12, 34, 56 ];
return $query_args;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.