Skip to content

Instantly share code, notes, and snippets.

@ncyhere
Created October 3, 2019 05:14
Show Gist options
  • Save ncyhere/7f1faa4edfb75824948d9af2051b989c to your computer and use it in GitHub Desktop.
Save ncyhere/7f1faa4edfb75824948d9af2051b989c to your computer and use it in GitHub Desktop.
WooCommerce Rename “State” Label @ Checkout
/**
* @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