Toolbox for Beaver Builder

toolbox/twig_error_debug

Allows you to set if debug errors for the Twig templates is to be rendered to the browser, or silently returned empty.

Besides using the Admin Option tab you can set it at runtime in your theme to hide or show the errors.

Parameters

  • $show_debug (boolean)

Usage

<?php

add_filter( 'toolbox/twig_error_debug' , '__return_false' );

to suppress error messages.

Last modified: October 30th, 2018