userame label changed in woocommerce showing errors during checkout page
-
Hi i have just changed the username label in woocoomerce registration form and login form but now unable to place order during checkout could you please guide what is the error
add_filter( ‘gettext’, ‘change_registration_usename_label’, 10, 3 );
function change_registration_usename_label( $translated, $text, $domain ) {
if( is_account_page() && ! is_wc_endpoint_url() ) {
if( $text === ‘Username’ ) {
$translated = __( ‘Account number’, $domain );
} elseif( $text === ‘Username or email address’ ) {
$translated = __( ‘Account number or email address’, $domain );
}
}return $translated;
}
- The topic ‘userame label changed in woocommerce showing errors during checkout page’ is closed to new replies.