Redirect to Custom URL After Registration

To redirect a user to a specific URL after registration, you can use the snippet below:

function wpkb_redirect_after_registration(){
    return home_url( '/my-desired-page' );
}
add_filter( 'registration_redirect', 'wpkb_redirect_after_registration' );