mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
https://businessbloomer.com/woocommerce-rename-state-label-checkout/?ck_subscriber_id=426953987
6 lines
202 B
Text
6 lines
202 B
Text
add_filter( 'woocommerce_default_address_fields' , 'wc_rename_state_province', 9999 );
|
|
|
|
function wc_rename_state_province( $fields ) {
|
|
$fields['state']['label'] = 'Province';
|
|
return $fields;
|
|
}
|