Action: bricks/get_templates/query_after
Runs after Bricks performs the uncached WP_Query inside Templates::get_templates_query(). Use it to restore integration context after the internal template query has run.
This action does not run when Bricks returns the template query from object cache.
Parameters
Section titled “Parameters”$query(WP_Query): The template query object.$merged_args(array): The query arguments after Bricks merges custom and default values.
Example usage
Section titled “Example usage”add_action( 'bricks/get_templates/query_after', function( $query, $merged_args ) { // Restore custom query context after template lookup.}, 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.