• I want to use another WordPress installation that gets it’s tables from my original WordPress prefix. I installed both WP installations in the same database with another prefix. I use WP Event Manager and the original prefix is like this:

    wp_em_events

    I want the same plugin at my new installation to automatically get it’s tables from the orginal one, like the following code already does for the users at my wp-config.php:

    define('CUSTOM_USER_TABLE', 'wp_users');

    Is there a rule I can use at my wp-config.php file like the one that gets the users? or is there another way to get the data from the orginal table to the new one?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There is no such wp-config.php constant for Event Manager. You could just copy the old content to the new table, but from then on, the data will not be synchronized. Any changes to one will not be reflected in the other.

    It may be possible to create a script that copies any changes to one table to the other to maintain synchronization. It will be a challenge to locate all the hooks that involve changes to the tables, if such hooks even exist.

Viewing 1 replies (of 1 total)
  • The topic ‘Get custom tables from database in wp-config.php’ is closed to new replies.