• Resolved Snat

    (@snat)


    Hey.

    I have searched this and found an answer but I have a question about the answer. I haven’t tried it yet though, so the answer may be simple to all.

    I have a bunch of sites that are all using the same database (all WordPress sites) and I am looking to allow them all to share the same user table so I can dump IP.Converge. I am fully aware that the code below will allow me to share users but the question I have are:

    • Does the code below also share user permission. For example, if they are an admin on one site, will they be an admin on all ?
    • If so, is there any way to stop this. I am looking to only share the users and not the user permission.
    define(CUSTOM_USER_TABLE,'wp_users');
    define(CUSTOM_USER_META_TABLE,'wp_usermeta');

    Going to add an example for my question 2.

    If I have the user – Bob and the user Jacob. Is it possible to share the user table and have Bob as admin on one and Jacob on another and that all users will be Subscriber by default ?

    Thanks for reading ??

    Thanks if anyone can answer this.

Viewing 1 replies (of 1 total)
  • Thread Starter Snat

    (@snat)

    Found out the answer.

    It seems by just having:

    define(CUSTOM_USER_TABLE,'wp_users');

    That it will set as subscriber by default. Will test further though. Thanks for looking.

Viewing 1 replies (of 1 total)
  • The topic ‘Sharing users table’ is closed to new replies.