mysql - Get custom tables from database in wp-config.php -
i want utilize wordpress installation gets it's tables original wordpress prefix. installed both wp installations in same database prefix. utilize wp event manager , original prefix this:
wp_em_events
i want same plugin @ new installation automatically it's tables orginal one, next code users @ wp-config.php:
define('custom_user_table', 'wp_users');
is there rule can utilize @ wp-config.php file 1 gets users? or there way info orginal table new one?
eventually worked using next code in wp-config.php:
define('em_events_table', 'wp_em_events');
it works other (wordpress) tables:
define('posts_table', 'wp_posts');
pages seen posts. sure al tables plugin, pages, users etc. . in cases have table meta information.
php mysql wordpress apache .htaccess
No comments:
Post a Comment