WPCodeBox Documentation
< All Topics

What happens in the case a snippet throws an error

In most cases, WPCodeBox will detect if a snippet triggers an error and it will disable it automatically. When a snippet is disabled because of this, that snippet will be colored red in WPCodeBox, and the error it triggered will be shown above the editor. You then have the option to dismiss the error, fix the problem, and re-enable the snippet.

In the rare case a snippet causes an error and it is not caught and you are locked out of your site, you can disable snippet execution by adding the following code to your wp-config.php file:

define('WPCB_SAFE_MODE', true);

This will disable snippet execution and allow you to disable the offending snippet.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram