php - checkout page field rename in woocommerce -
i trying rename field text on checkout page woocommerce
code using.
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_address_1']['label'] = 'address (no po boxes)'; return $fields; }
now issue while uploading page address (no po boxes)
showing page load start shows address again confused why showing that
i got answer update label in woocommerce/includes/class-ec-countries.php
. there can see code on line no.509
code in array
'address_1' => array( 'label' => __( 'address', 'woocommerce' ), 'placeholder' => _x( 'street address', 'placeholder', 'woocommerce' ), 'required' => true, 'class' => array( 'form-row-wide', 'address-field' ) ),
i changes address required text , working awesome
Comments
Post a Comment