Skip to content

Instantly share code, notes, and snippets.

@wsenjer
Forked from mikejolley/gist:3012597
Last active February 17, 2017 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wsenjer/eda4b6fa622f038089bc2b67f95da205 to your computer and use it in GitHub Desktop.
Save wsenjer/eda4b6fa622f038089bc2b67f95da205 to your computer and use it in GitHub Desktop.
WooCommerce - Manipulate the states
/**
* Code goes in functions.php or a custom plugin. Replace XX with the country code your changing.
*/
add_filter( 'woocommerce_states', 'custom_woocommerce_states' );
function custom_woocommerce_states( $states ) {
$states['PS'] = array(
'Gaza' => 'غزة',
'Rafah' => 'رفح'
);
return $states;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment