Filter: bricks/render_with_bricks
Filter: bricks/render_with_bricks
Section titled “Filter: bricks/render_with_bricks”Determines whether a specific post or page should be rendered using Bricks. If this filter returns false, Bricks will yield control to the default WordPress template loader or another builder.
Parameters
Section titled “Parameters”$render(bool|null): Whether to render with Bricks. Default isnull(Bricks decides based on settings).$post_id(int): The ID of the post being checked.
Example usage
Section titled “Example usage”add_filter( 'bricks/render_with_bricks', function( $render, $post_id ) { // Example: Disable Bricks rendering for posts with a specific meta value if ( get_post_meta( $post_id, 'disable_bricks', true ) ) { return false; }
return $render;}, 10, 2 ); Was this page helpful?