Skip to content

Instantly share code, notes, and snippets.

@rashedripon
Created October 31, 2022 13:21
Show Gist options
  • Save rashedripon/f96b85ee512ab2533e02d9e1fb9f3625 to your computer and use it in GitHub Desktop.
Save rashedripon/f96b85ee512ab2533e02d9e1fb9f3625 to your computer and use it in GitHub Desktop.
Add new state
/**
* Add or modify States
*/
add_filter( 'woocommerce_states', 'custom_woocommerce_states' );
function custom_woocommerce_states( $states ) {
$states['DK'] = array(
'DK1' => 'Aarø',
);
return $states;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment