Last active
March 5, 2017 08:41
-
-
Save ediamin/882b32b47ed4ab4bcb0126073a97b567 to your computer and use it in GitHub Desktop.
How to add more country states in WP ERP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// use `erp_states` filter hook to add country states | |
add_filter( 'erp_states', function ( $states ) { | |
$states['NL'] = [ | |
'DR' => 'Drenthe', | |
'FL' => 'Flevoland', | |
'FR' => 'Fryslân (fy)', | |
'GE' => 'Gelderland', | |
'GR' => 'Groningen', | |
'LI' => 'Limburg', | |
'NB' => 'Noord-Brabant', | |
'NH' => 'Noord-Holland', | |
'OV' => 'Overijssel', | |
'UT' => 'Utrecht', | |
'ZE' => 'Zeeland', | |
'ZH' => 'Zuid-Holland', | |
]; | |
return $states; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment