V
V
Vasily Sochkov2018-04-19 06:59:52
MySQL
Vasily Sochkov, 2018-04-19 06:59:52

How to use one user base on 2 wordpress sites?

Essence: there is a site on wordpress. I'm doing the second one. How to make the second site use the user database from the first site? Multisite do not offer, please, it does not fit.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2018-04-19
@HeadOnFire

Using constants in wp-config.php, you can specify custom wp_user / wp_usermeta tables . Specify the same for both sites in their configs:

define( 'CUSTOM_USER_TABLE', $shared_table_prefix . 'my_users' );
define( 'CUSTOM_USER_META_TABLE', $shared_table_prefix . 'my_usermeta' );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question