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

4 Replies to “READ THIS FIRST”

    1. Hi Wayne,

      You can use the Code Manager to add specific libraries to a page. What kind of table is this? What library needs to be added?

      Thanks,
      Peter

      1. Peter: Essentially a database is searched on LAST NAME/FIRST NAME (etc) and the results need to be downloaded as a PDF or printed. A shortcode “button” would facilitate this operation. I also read somewhere that there “could be” a selection feature which, if I searched for records and the search found A, B, C, D and E, but I only wanted A, C and D, that those three records could be clicked/selected and a PDF or PRINT button would only return those three selected records.

        1. Hi Wayne,

          You can use a HTML shortcode to add a button to your page and a JavaScript shortcode to add an event to your button calling a link to a web service which produces the PDF. The premium version of the Code Manager allows you to write your own web services as well. These web services can facilitate any response, including PDF files. Here are some examples:
          https://code-manager.com/code/?wpda_search_column_code_type=back-end+code

          Did you have a look at WP Data Access? WP Data Access offers many features for database tables out of the box. Here is a link to a demo supporting exports to PDF and printing:
          https://wpdataaccess.com/demos/demos-data-publisher/demo-shortcode-wpdataaccess-responsive/?cm_submit_color=Green

          Hope this helps,
          Peter

Leave a Reply to Wayne Wickson Cancel reply

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