Created
October 3, 2019 05:14
-
-
Save ncyhere/7f1faa4edfb75824948d9af2051b989c to your computer and use it in GitHub Desktop.
WooCommerce Rename “State” Label @ Checkout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @snippet Rename State Field Label @ WooCommerce Checkout | |
* @author NCY DESIGN https://wordpress.ncy.design | |
* @compatible WooCommerce 3.7 | |
*/ | |
add_filter( 'woocommerce_default_address_fields' , 'ncydesign_rename_state_province', 9999 ); | |
function ncydesign_rename_state_province( $fields ) { | |
$fields['state']['label'] = 'Province'; | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment