Advertisement
tommyosheawebdesign

Add 6 Counties to Ireland WooCommerce

Oct 28th, 2021
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. add_filter( 'woocommerce_states', 'custom_woocommerce_states' );
  2. function custom_woocommerce_states( $states ) {
  3. $states['IE'] = array(
  4. 'IE1' => 'Antrim',
  5. 'IE2' => 'Armagh',
  6. 'IE3' => 'Carlow',
  7. 'IE4' => 'Cavan',
  8. 'IE5' => 'Clare',
  9. 'IE6' => 'Cork',
  10. 'IE7' => 'Donegal',
  11. 'IE8' => 'Down',
  12. 'IE9' => 'Dublin',
  13. 'IE10' => 'Fermanagh',
  14. 'IE11' => 'Galway',
  15. 'IE12' => 'Kerry',
  16. 'IE13' => 'Kildare',
  17. 'IE14' => 'Kilkenny',
  18. 'IE15' => 'Laois',
  19. 'IE16' => 'Leitrim',
  20. 'IE17' => 'Limerick',
  21. 'IE18' => 'Derry/Londonderry',
  22. 'IE19' => 'Longford',
  23. 'IE20' => 'Louth',
  24. 'IE21' => 'Mayo',
  25. 'IE22' => 'Meath',
  26. 'IE23' => 'Monaghan',
  27. 'IE24' => 'Offaly',
  28. 'IE25' => 'Roscommon',
  29. 'IE26' => 'Sligo',
  30. 'IE27' => 'Tipperary',
  31. 'IE28' => 'Tyrone',
  32. 'IE29' => 'Waterford',
  33. 'IE30' => 'Westmeath',
  34. 'IE31' => 'Wexford',
  35. 'IE32' => 'Wicklow',
  36. );
  37. return $states;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement