bookmark_bordergform_user_registration_login_redirect_url

Description

Filters the redirect URL after login when using the User Registration add-on login widget.

Usage

add_filter( 'gform_user_registration_login_redirect_url', 'my_function', 10, 2 );

Parameters

  • $login_redirect string
    The URL that the user will be redirected to.

  • $sign_on object
    The user object if successful. Otherwise, error.

Examples

function my_function( $login_redirect, $sign_on ) {
    // Do something here
    return $login_redirect;
}
add_filter( 'gform_user_registration_login_redirect_url', 'my_function', 10, 2 );

Source Code

This action hook is located in class-gf-user-registration.php