toolbox/twig_error_debug

Estimated reading: 1 minute

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.

Share this Doc

toolbox/twig_error_debug

Or copy link

CONTENTS