Accessing two databases wordpress

When enhancing WordPress functionality, always use the theme’s functions.php file (located, generally, in {WP root}/wp-content/themes/{your theme}/functions.php), or put your code into a plugin.

The rules for hacking core code are similar to the rules for optimization.

  1. Don’t do it.
  2. (for experts only) Don’t do it yet.