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