operate woo_login_funnel( $redirect, $person ) {     
    if ( wc_user_has_role( $person, 'buyer' ) ) {
        $redirect="/login-special-offer"; // add funnel URL right here
    }  
    return $redirect;
}

add_filter( 'woocommerce_login_redirect', 'woo_login_funnel', 9999, 2 );

Leave a Reply