Gravity Wiz // Modify Login URL in New User Notification
<?php
add_filter('gform_user_registered', 'send_alpha_notification', 10, 4);
function send_alpha_notification($user_id, $config, $lead, $password) {
add_filter('login_url', 'modify_alpha_login_url');
wp_new_user_notification($user_id, $password);
remove_filter('login_url', 'modify_alpha_login_url');
}
function modify_alpha_login_url($login_url) {
// change login url to alpha welcome page
return get_permalink(788);
}