Support » Plugin: Customer verification for WooCommerce » Inquiry about after Email Verification

  • Resolved syedaliazlan

    (@syedaliazlan)


    Hello,
    Thank you for creating an amazing plugin. I need your help in one of the aspects. I’m running an external API that is called whenever a new user registers on our website and we need to verify their email which is done by this email. Now, what I need to do is to run my external API again after the user is verified successfully because I need to update a field in my external API. Can you tell me the best way to do it?

    Thank you in advance.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter syedaliazlan

    (@syedaliazlan)

    Still waiting for an update here.

    Plugin Author Zorem

    (@zorem)

    Hi @syedaliazlan,

    We will add the hook after email verification in the next version of the plugin. You can use this hook and run an external API call.

    Thanks,

    Thread Starter syedaliazlan

    (@syedaliazlan)

    Thank you for the information. One last request:
    How can I resend the verification email automatically to the new email address if user email is updated from admin dashboard manually?

    Plugin Author Zorem

    (@zorem)

    A verification email will not send automatically after you change a new email address from the admin dashboard. You need to send it manually from the user details page.

    Thread Starter syedaliazlan

    (@syedaliazlan)

    I see but is there any hook defined in your plugin that I can call to resend it? This is the only blocker that I’m facing now and I have managed to sort out the rest.
    Thank you for the support!

    Thread Starter syedaliazlan

    (@syedaliazlan)

    function wpdocs_check_user_email_updated( $user_id, $old_user_data ) {
        $old_user_email = $old_user_data->data->user_email;
     
        $user = get_userdata( $user_id );
        $new_user_email = $user->user_email;
     
        if ( $new_user_email !== $old_user_email ) {
            delete_user_meta($user_id, "customer_email_verified");
            // email resend hook to call here
        }
    }
    add_action( 'profile_update', 'wpdocs_check_user_email_updated', 10, 2 );
    Plugin Author Zorem

    (@zorem)

    Hi, sorry, verification when changing the email address by the admin is not supported by our plugin.

    Plugin Author Zorem

    (@zorem)

    Hi, let me know if you need further assistance
    Thnaks

    Thread Starter syedaliazlan

    (@syedaliazlan)

    @zorem Could you be kind enough to let me know how can I trigger the email verification process when a user is created using WP Rest API. I have studied the plugin code in detail and if I can get any direction, maybe I can come up with a solution.

    Thank you!

    Plugin Author Zorem

    (@zorem)

    Hi, there is no option through the API to trigger the verification, the only option is to create a custom endpoint in the API for customer registration that will also trigger the verification. You can request this feature for the premium version on the plugin’s features board.
    Thanks

    Thread Starter syedaliazlan

    (@syedaliazlan)

    @zorem Thank for getting back to me. Can you tell me how much time will it take and the cost for this feature?

    Plugin Author Zorem

    (@zorem)

    Hi, you can post the feature request and contact zorem to ask for a timeline for this feature in the premium version.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.