SOLVED: Bricks/frontend/render_element not applied to Nav Menu element in builder

For example:

add_filter( 'bricks/frontend/render_element', function( $html, $element ) {
	return '<div id="whatever">Hello</div>';
}, 10, 2 )

On the frontend, all elements are replaced by “Hello”. In the builder, Nav Menus render without the filter.

If this is intentional, what is the workaround? I just want to search and replace a few strings, but it’s no good if it doesn’t show in the editor.

Hi @glp ,

Thanks for reporting the issue.

I have recorded this into the bug tracker.

Regards,
Jenn

We’ve addressed this in Bricks 2.4-beta (beta release), now available for manual download from your Bricks account.

Please read the changelog entry before testing, and let us know if you experience any issues. Note: beta builds are not recommended for production sites.