woocommerce username label change showing error in checkout
-
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 ‘woocommerce username label change showing error in checkout’ is closed to new replies.