Skip to content

Instantly share code, notes, and snippets.

@assoscoupa
Last active May 18, 2020 12:34
Show Gist options
  • Select an option

  • Save assoscoupa/3585f736a12c74a3621f367e083443e7 to your computer and use it in GitHub Desktop.

Select an option

Save assoscoupa/3585f736a12c74a3621f367e083443e7 to your computer and use it in GitHub Desktop.
Woo Modify States - Πχ. Μετατροπή από Περιφέρειες σε Νομούς
/**
* Add or modify States https://docs.woocommerce.com/document/addmodify-states/
*/
add_filter( 'woocommerce_states', 'custom_woocommerce_states' );
function custom_woocommerce_states( $states ) {
$states['XX'] = array(
'XX1' => 'State 1',
'XX2' => 'State 2'
);
return $state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment