Rename 'State / Province' in My Account page
-
Hi
Please I want to rename ‘State / Province’ and ‘City’ in My Account page but i still couldn’t do that, what shall i doI tried this but it doesn’t help:
add_filter( 'woocommerce_billing_fields', 'custom_woocommerce_billing_fields' ); function custom_woocommerce_billing_fields( $fields ) { $fields['billing_city'] = array( 'type' => 'select', 'label' => __('Wilaya', 'woothemes'), 'required' => true, 'class' => array('billing-city'), 'options' => array( 'Alger' => __('Alger', 'woothemes' ) ) ); $fields['billing_state'] = array( 'type' => 'select', 'label' => __('Commune', 'woothemes'), 'required' => true, 'class' => array('billing-state'), 'options' => array( 'Alger' => __('Alger', 'woothemes' ) ) ); return $fields; }
Thank you in advanced!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Rename 'State / Province' in My Account page’ is closed to new replies.