The gform_user_registration_login_form_title filter in the Gravity Forms User Registration Add-On enables you to modify the title of the login form.
Usage
add_filter('gform_user_registration_login_form_title', 'your_function_name', 10, 1);
Parameters
$login_form_title
(string): The title of the login form.
More information
See Gravity Forms Docs: gform_user_registration_login_form_title
This filter was added in User Registration version 3.2.
Source Code: This filter is located in GF_User_Registration::login_form_object()
in gravityformsuserregistration/class-gf-user-registration.php
.
Examples
Change Login Form Title
This example changes the title of the login form to “This is my new title”:
add_filter('gform_user_registration_login_form_title', 'change_title', 10, 1); function change_title($login_form_title) { return 'This is my new title'; }
Add Prefix to Login Form Title
This example adds a prefix “Welcome – ” to the login form title:
add_filter('gform_user_registration_login_form_title', 'add_prefix', 10, 1); function add_prefix($login_form_title) { return 'Welcome - ' . $login_form_title; }
Add Suffix to Login Form Title
This example adds a suffix ” – Please Log In” to the login form title:
add_filter('gform_user_registration_login_form_title', 'add_suffix', 10, 1); function add_suffix($login_form_title) { return $login_form_title . ' - Please Log In'; }
Uppercase Login Form Title
This example changes the login form title to uppercase:
add_filter('gform_user_registration_login_form_title', 'uppercase_title', 10, 1); function uppercase_title($login_form_title) { return strtoupper($login_form_title); }
Remove Login Form Title
This example removes the login form title:
add_filter('gform_user_registration_login_form_title', 'remove_title', 10, 1); function remove_title($login_form_title) { return ''; }