field name is not changed
-
Hey, everybody.
I have encountered such a problem that I can not edit the name of the field on the registration page. There are standard three fields: “username”, “email, “password”.I need to change the name of the field “username” to “login”. I have found such a hook to edit it:
function rename_registration_username_field( $fields ) {
$fields['account']['account_username']['label'] = 'Login';
return $fields;
}
add_filter( 'woocommerce_checkout_fields', 'rename_registration_username_field' );However, when I add it to the functions.php file nothing happens, can you tell me how do I end up editing this field?
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘field name is not changed’ is closed to new replies.