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,
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.
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!
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
@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
@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.