• Resolved ssurfer

    (@ssurfer)


    Hi,

    can i resend a activation email with this plugin?

    And an other question is.
    I can verify and unverify a user in the backend. But the user didn’t get an email notification for this action. Is this a normal behaviour?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support sanjuacharya77

    (@sanjuacharya77)

    Hi @ssurfer,

    I am a bit unclear about your first query, could you please elaborate in a bit more details? Actually, what do you mean by an activation email?
    If you mean to resend the verification link then we do not have such an option in the plugin but I can provide you a code that you can add in your active theme’s functions.php file that will add a link in the user’s section. It will be “Resend Verification Link”. This should do the trick.
    Here’s the code:

    add_filter( 'user_row_actions', 'ur_add_new_action_links', 10, 2 );
    function ur_add_new_action_links( $actions, $user ) {
    $email_status = get_user_meta( $user->ID, 'ur_confirm_email', true );
    $url = ur_get_page_permalink( 'myaccount' );
    $instance = new UR_Email_Confirmation();
    $url = wp_nonce_url( $url . '?ur_resend_id=' . $instance->crypt_the_string( $user->ID, 'e' ) . '&ur_resend_token=true', 'ur_resend_token' );
    if ( '0' === $email_status ) {
    $actions['resend-email'] = '<a id="resend-email" href="' . esc_url( $url ) . '" target="_bank">' . __( 'Resend Verification Link', 'user-registration' ) . '</a>';
    }
    return $actions;
        }

    And regarding your second query, Yes you can verify and unverify users from the backend. But Currently, we don’t have a feature to send the notification email to the users for this action.

    Do let me know whether it works for you or not and I will get back to you.

    Regards!

    Thread Starter ssurfer

    (@ssurfer)

    Hi,

    sorry for the late response.

    Your code snippet for resending the verification link is great.

    Maybe sending a notification email to the user for those action would be something you could add in the upcoming releases?

    Or you can add a hook to do it by myself

    • This reply was modified 4 years, 5 months ago by ssurfer.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘resend activation link and missing email notification’ is closed to new replies.