weglot_debug_file

In the Weglot plugin you can active a debug mode.

To activate the debug mode the steps are:

  • In Weglot.php set WEGLOT_DEBUG to true

  • Create a file content.html on Weglot plugin dir root

add_filter( 'weglot_debug_file', 'path to your file' );

With this filter you can access debug mode from another file instead of :

WEGLOT_DIR . '/content.html'

Last updated