Filter: bricks/helpers/get_posts_args
Filters the query arguments used to fetch posts for the “Preview as” setting and other post selection controls in the builder.
Parameters
Section titled “Parameters”$query_args(array): Array of arguments passed toget_posts().
Example usage
Section titled “Example usage”add_filter( 'bricks/helpers/get_posts_args', function( $query_args ) { // Example: Exclude 'private' posts from the selection list $query_args['post_status'] = 'publish';
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.