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 526 Bricks code tutorials with BricksLabs Pro

3 comments

Leave your comment

 

Related Tutorials..

How to Add a Custom Control Field to an Element in Bricks

How to Add a Custom Control Field to an Element in Bricks

In this tutorial, we'll learn how to add a custom control field to an element and dynamically change a CSS property inside the builder. Introduction…
Read more β†’
Categories:
Tags:
How to create filters with IsotopeJS in Bricks (Part 1)

How to create filters with IsotopeJS in Bricks (Part 1)

This tutorial series will explore the IsotopeJS library's features inside the Bricks ecosystem.
Read more β†’
Categories:
Pro
Outputting Only the First ACF Repeater Row in Bricks

Outputting Only the First ACF Repeater Row in Bricks

Updated on 12 Dec 2023 In the Bricks Facebook group a user asks: How can I display only the first entry from an ACF repeater?…
Read more β†’
How to Exclude Elements from Bricks Editor

How to Exclude Elements from Bricks Editor

Bricks has a handy bricks/builder/elements filter using which the available elements that show up after clicking + (or βŒƒ/⌘ + ⇧ + E) in the…
Read more β†’
Categories:
Tags:
Modifying ACF Field Value Before It Is Output

Modifying ACF Field Value Before It Is Output

Consider the scenario where a Page has a "Page Fields" field group created with ACF Pro like this: Field name: scientific_coordinators (type Repeater)|__ Sub field…
Read more β†’
Categories: