Viewing 4 replies - 1 through 4 (of 4 total)
  • https://bavotasan.com/2011/access-another-database-in-wordpress/

    The following hook is executed immediately after creating a user, normally it serves to send the e-mail to the new user.

    add_action('woocommerce_created_customer', 'admin_email_on_registration', 10 , 3);
    function admin_email_on_registration( $customer_id, $new_customer_data, $password_generated) {
       //...
    }

    Using the current hook ‘woocommerce_created_customer’ you can access the following details only.

    $new_customer_data contains ‘user_login’ => $username, ‘user_pass’ => $password, ‘user_email’ => $email, ‘role’ => ‘customer’ in an array.

    Thread Starter sayze35

    (@sayze35)

    THANKS crslz,

    Do you know if doing this type of insert could result in any problems? Is it really that easy ??

    Here is my full situation:
    WP1 (a content site)
    WP2 (payment subscription site)

    So basically separating payment processing from content, but people register on WP2 and then log in to WP1. Obviously, I don’t want people to register twice.

    I see other benefits to splitting up the sites, but don’t want to create problems in doing so.

    Question: have you done this before on a busy site? What if 1000 new subscribers are signing up every hour? Would you foresee a problem somehow?

    thanks again!

    hello, I have not applied this yet.

    if it is properly programmed then it will not matter so much whether it is used much or little

    You could also foresee that instead of 2 databases the 2 websites use 1 database (user table)

    It depends on what you prefer. Maybe you should read the following publication https://kinsta.com/blog/share-logins-wordpress/

    We haven’t heard back from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any further questions!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘After Completed new Subscriber Process, insert user (to another WP install)?’ is closed to new replies.