Action: bricks/database/get_all_templates_by_type/after_query
Runs after Bricks performs the uncached get_posts() query for all published Bricks templates. Use it to restore integration query context after Bricks has fetched template IDs.
This action does not run when Bricks returns templates from object cache or the in-memory Database::$all_templates cache.
Parameters
Section titled “Parameters”$template_ids(array): Template IDs returned by the query.$args(array): The query arguments used to fetch templates.
Example usage
Section titled “Example usage”add_action( 'bricks/database/get_all_templates_by_type/after_query', function( $template_ids, $args ) { // Restore custom query or language context here.}, 10, 2 );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.