SOLVED: Bricks 1.10 - Element Render Filter not working on Frontend

Browser: Chrome lastet
OS: Windows 11

This filter seems no to work anymore on frontend !!

I have this code in place to stop rendering elements with my class ‘go-render-none’:

add_filter( 'bricks/element/render', function( $render, $element ) {
	// get the element CSS classes
	$classes = ! empty( $element->attributes['_root']['class'] ) ? $element->attributes['_root']['class'] : false;

    if( empty($classes) ) { return $render; }

    if( in_array('go-render-none', $classes) ) { return false; }

    return $render;
}, 20, 2 );

After update to 1.10 the elements are shown on frontend (In the builder they are not rendered, that’s ok).

Thanks for a soon fix so I can update my sites
François

1 Like

Hi @goninski,

you are right. I can replicate the issue locally and when I checked with 1.9.9, the behavior was different - correct. I’ll talk with the rest of the team and I’ll create an internal task for this.

Best regards,
M

Hi guys,

I’m happy to let you know that we’ve fixed this issue in the hotfix release of Bricks 1.10.1, now available as a one-click update in your WordPress Dashboard.

You can see the full changelog here: Bricks 1.10.1 Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
M