14th Mar '24
/
3 comments

Whitelisting echo functions in Bricks 1.9.7 and above

Many tutorials in our site require the use of custom functions for adding advanced customizations and functionality in Bricks builder and often these functions are echoed out using the Bricks’ echo: dynamic data tag.

For Bricks v1.9.7 and beyond, it is necessary to whitelist all such functions using the new bricks/code/echo_function_names filter. This is also needed for any core PHP functions like date().

To ensure that your echo functions continue to work after updating Bricks to 1.9.7, go to Bricks → Settings → Custom code.

Click Start: Code review button.

Review all code instances ensuring that it is something that you (or another trusted developer) has added.

Copy the generated filter code and paste it in your child theme‘s functions.php at the end.

It is NOT recommended to add this in a code plugin that stores it in the database for security reasons.

Get access to all 610 Bricks code tutorials with BricksLabs Pro

3 comments

Leave your comment

 

Related Tutorials..

Pro
Conditionally Excluding Elements from Bricks Editor

Conditionally Excluding Elements from Bricks Editor

In the past, we shared How to Exclude Elements from Bricks Editor. This Pro tutorial shows how specific elements can be excluded selectively based on…
Pro
Restrict Content Pro in Bricks

Restrict Content Pro in Bricks

This Pro tutorial provides the steps to restrict Pages and individual elements like Sections in Bricks depending on whether the current user has any active…
Pro
Filtering Meta Box Cloneable Group by Select Subfield for Multiple Bricks Query Loops with Conditional Output

Filtering Meta Box Cloneable Group by Select Subfield for Multiple Bricks Query Loops with Conditional Output

In the Bricks Facebook group a user asks: Consider this cloneable Meta Box field group for a Custom Post Type called Tour: with the Tour…
How to Remove Name and Website Fields in Bricks Comment Forms

How to Remove Name and Website Fields in Bricks Comment Forms

Updated on 14 Mar 2024 In the BricksLabs Facebook group a user asked: What is the best method to remove fields from the Bricks "Comments"…