Filter: bricks/code/disable_execution
This PHP filter allows you to disable code execution within the Bricks builder programmatically.
It takes precedence over the bricks/code/allow_execution filter and any settings configured in Bricks > Settings > Custom code > Code execution.
add_filter( 'bricks/code/disable_execution', function( $disable ) { // Returning true disables code execution programmatically return true;} );Use this filter to enforce stricter security by disabling code execution, regardless of other configurations on your site.
Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.