Use the code LIFETIME at checkout and get 20% off our limited-time lifetime plans. Offer available until September 21.
WPCodeBox Documentation
< All Topics
Print

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.

Previous Snippet settings