Skip Navigation

[Gelöst] Updating log in form to remove "user name" and only ask for "User email address"

This support ticket is created vor 1 Jahr, 2 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 1 Jahr, 2 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2644179

Today the login form uses this language " Username or Email", my client wants it to only ready "Email Address". How can I make that change?

#2644287

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you want to change the field label "Username or Email" that is coming from Toolset's login form. If yes:
- you can use the "gettext" hook.

For example - Add the following code to "Custom Code" section offered by Toolset or your active theme's "functions.php" file.
=> https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/

add_filter( 'gettext', 'func_custom_login_form_label', 20, 3 );
function func_custom_login_form_label( $translated_text, $text, $domain ) { 
    switch ( $translated_text ) {
        case 'Username or Email' :
            $translated_text = __( 'Email Address', 'wpv-views' );
        break;
    }
    return $translated_text;
}
#2644289

Perfect! Thank you!!!