gform_user_registration_login_args

Description

The “gform_user_registration_login_args” filter allows the modification of the login form arguments used to create the HTML for the Gravity Forms Login Widget. This filter is used in the User Registration Add-On for Gravity Forms.

Usage

add_filter( 'gform_user_registration_login_args', 'your_function_name', 10, 1 );

Parameters

  • $args array

    An array of the login form arguments used to generate the HTML.

    Potential values:

Example

add_filter( 'gform_user_registration_login_args', 'set_html_args', 10, 1 );
function set_html_args( $args ) {
	$args['logged_out_links'] = array();
	return $args;
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in GF_User_Registration::get_login_html() in gravityformsuserregistration/class-gf-user-registration.php.