Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter luizgustavs

    (@luizgustavs)

    i understand you point, but for my perspective i was asking support for WC, i asked to trigger a WC core function by using a code snippet in a certain condition, is not about any other plugin, only trigger a WC funcion.

    Thread Starter luizgustavs

    (@luizgustavs)

    Well, as i said, use the wc registration form is not an option because there is another plugin handling the user registration, i just would like to trigger WC’s new account email even when the account is being made by the default wordpress system or by another plugin.

    The good news is that i got a solution, i will leave here.

    if someone one day needs a solution like that, this simple code worked for me:

    function send_welcome_email_to_new_user($user_id) {
    	$wc = new WC_Emails();
    	$wc->customer_new_account($user_id);
      }
    add_action('user_register', 'send_welcome_email_to_new_user');

    if there is any suggestion ou someone wants to improve this little code, would be nice!

    Thread Starter luizgustavs

    (@luizgustavs)

    Sim, eu consegui uma solu??o, bem boba na verdade, eu exclui as tokens que haviam e gerei novas tokens na plataforma da Juno, sendo API V2, Client ID, Client Secret, Token Privado e Token Publico, as novas tokens funcionaram perfeitamente sem necessitar de qualquer manuten??o adicional.

    Thread Starter luizgustavs

    (@luizgustavs)

    rename share.php.back make the buttons appaers, but they are getting the wrong URL, i will try solve this from here by my self or with porto suport. Looks a good start, thanks mate! Nice plugin!

Viewing 4 replies - 1 through 4 (of 4 total)