With great power comes great responsibility
With all these features at hand, things can easily go wrong:
- Know what you do, do what you know
- Do NOT copy code from the internet into the Code Manager if you’re not sure what the code does
- Do NOT copy code into your Code Manager you don’t understand
Not sure? Just ask!
What to do if your code fails?
Even the best programmers make mistakes. If your code fails and a web page hangs or crashes, just disable the failing code.
Even if your code completely crashes all your web pages and/or dashboard, the Code Manager (including the settings page) will remain accessible. Only code added outside the Code Manager might crash the Code Manager as well.
Start the Code Manager and disable the failing code:
Use the Code Manager settings page to completely disable the Code Manager:
Add CODE_MANAGER_DISABLED to your wp-config.php to completely disable the Code Manager:
define( ‘CODE_MANAGER_DISABLED’, true );
Method 4 (previewed code only)
If you enabled preview mode for code that makes your pages inaccessible, just logout and login again. This will disable all your preview settings.