1. Home
  2. Docs
  3. Index
  4. Getting Started
  5. READ THIS FIRST

READ THIS FIRST

The Code Manager is a very powerful tool that allows WordPress users to manage PHP, JavaScript, CSS and HTML directly from the dashboard. The free version allows users to write their own PHP, JavaScript, CSS and HTML snippets and add them to their web pages with a shortcode. The premium version allows users to write their own hooks and filters, add resource files to the front-end and back-end, write JSON, XML or other services, and many more. You can even write your own WordPress apps that run in the dashboard or on a web page. Your imagination is the limit.

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.

Method 1

Start the Code Manager and disable the failing code:

http(s)://your-server/wp-admin/admin.php?page=code_manager

Method 2

Use the Code Manager settings page to completely disable the Code Manager:

http(s)://your-server/wp-admin/options-general.php?page=code_manager

Method 3

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.

Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *