I have a function in a code block on a page in the bricks builder. It’s in a query loop and everything in working fine in the frontend and in the editor. The expected result is just having the icon show within the builder. it works fine when the function is defined directly in the functions.php file.
Im using the plugin “codes” in wordpress to manage all my scripts > if I try to switch defining the function there, the frontend still works fine but the backend’editor returns a “undefined function error”
would there be any ways to add code to parse the “code” plugins’s php inclusions content too. It writes .php files to the /wp-content/custom_code/ folder, and includes those in the functions.php.
maybe the code would ressemble the brick’s child theme function “Register custom elements” > would adjusting the path of whats being loaded in this function a good start to load these in the builder. any documentation for the “\Bricks\Elements::register_element” function?
Thanks in advance!