• Hi!

    I wanted to ask if it’s possible that in feature release you would add one additional filter inside create_user() method, so this part

    			// User account already exists
    			if ( get_user_by( 'email', $payment_data['user_info']['email'] ) ) {
    				return false;
    			}

    would look like

    			// User account already exists
    			if ( get_user_by( 'email', $payment_data['user_info']['email'] ) ) {
    				return apply_filters( 'edd_auto_register_email_exists', false, $payment_data, $payment_id)
    			}

    Or in a perfect world an action.

    The idea is that we don’t want to force the user to sign up, if he already has an account, instead we would just add the purchase to his existing account.

    • This topic was modified 6 years, 3 months ago by Edgars V. Reason: Updated code

The topic ‘Additional filter inside create_user’ is closed to new replies.