gform_user_registration_login_args

gform_user_registration_login_args

DescriptionUsageParametersExamplePlacementSource Code

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
1add_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:

display_title boolean
display_description boolean
display_lost_password boolean
logged_in_avatar boolean
logged_in_links array
logged_in_message string
logged_out_links array
login_redirect string
logout_redirect string
tabindex int

Example
12345add_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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註