Filter: bricks/helpers/get_posts_args
Filter: bricks/helpers/get_posts_args
Section titled “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 page helpful?