Filter: bricks/database/bricks_get_all_templates_by_type_args
Filters the query arguments used to retrieve all Bricks templates. This is primarily used by multilingual plugins (like WPML and Polylang) to ensure only templates in the current language are fetched.
Parameters
Section titled “Parameters”$args(array): Array of arguments passed toget_posts().
Example usage
Section titled “Example usage”add_filter( 'bricks/database/bricks_get_all_templates_by_type_args', function( $args ) { // Example: Include private templates $args['post_status'] = [ 'publish', 'private' ];
return $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.