Three steps guide & Troubleshooting
What if a function doesn’t work?

If a function does not seem to work, the first thing to do is double-check that the code has been copied exactly as provided. Then, make sure the snippet is actually active (look for the green toggle) and confirm that the scope is correct — for example, “Run Everywhere” if it’s needed globally, or “Front-end” if it only affects your public site. In some cases, refreshing both your browser cache and any plugin cache will make the change visible.

What if the site crashes after activating a snippet?

If the site crashes after activating a snippet, don’t panic. Code Snippets has a built-in Safe Mode.
By enabling it, all snippets are paused, giving you access to the admin area where you can deactivate the problematic one. If you cannot access the dashboard at all, you can force Safe Mode by editing the wp-config.php file and adding the following line: define('CODE_SNIPPETS_SAFE_MODE', true);

This will allow you back in so you can safely turn off the faulty snippet.

Can the functions be disabled?

Functions can also be disabled at any time without deleting them. To do this, simply go to Snippets → All Snippets and toggle off the one you no longer want to run. If you are certain you won’t need it again, you can delete it permanently from the same screen.

What if I get a PHP error?

If you see a PHP error after saving a snippet, it usually means there is a small typo, such as a missing semicolon or bracket. Compare the code carefully with the example we provided. If you are unsure, just deactivate the snippet and contact us with the error message so we can help.

What if I added multiple functions at once and something broke?

If you have added multiple functions at once and something broke, the best practice is to keep each function in its own snippet. This way, you can deactivate or fix only the one that is causing the issue without affecting the rest.

How do I restore my site if nothing works?

If nothing seems to work and you cannot access the site at all, you can always restore access manually. Connect to your site files via FTP or your hosting control panel, open wp-config.php, and add the Safe Mode line shown above. Once you log back in and deactivate the broken snippet, you can remove that line from the file.

What if I want to test safely first?

Finally, if you want to test safely before making changes, you can activate Safe Mode in advance. This ensures that if something goes wrong, all snippets are paused automatically and your site stays online without major disruption.