Filter: bricks/code/allow_execution
An alternative to the Disable code execution setting under Bricks > Settings > Builder Access. You can use this PHP filter to disable/enable code execution programmatically.

add_filter( 'bricks/code/allow_execution', function( $allow ) { // Only allows to return false to disable code execution programmatically return false;} );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.