wc_ng_counties_add_counties

Copyright (c) 2014 Alexander Asomba.

Description

wc_ng_counties_add_counties( $states ); 

All rights reserved.

Released under the GPL license http://www.opensource.org/licenses/gpl-license.php

This is an add-on for WordPress http://wordpress.org/

********************************************************************** This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. **********************************************************************

Parameters (1)

0. $states
The states.

Usage

  1. if ( !function_exists( 'wc_ng_counties_add_counties' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-nigeria-states/woocommerce-nigeria-states.php'; 
  3.  
  4. // The states. 
  5. $states = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_ng_counties_add_counties($states); 
  9.  

Defined (1)

The function is defined in the following location(s).

/woocommerce-nigeria-states.php  
  1. function wc_ng_counties_add_counties ( $states ) { 
  2.  
  3. $states ['NG' ] = array ( 
  4. 'AB' => 'Abia' ,  
  5. 'FC' => 'Abuja' ,  
  6. 'AD' => 'Adamawa' ,  
  7. 'AK' => 'Akwa Ibom' ,  
  8. 'AN' => 'Anambra' ,  
  9. 'BA' => 'Bauchi' ,  
  10. 'BY' => 'Bayelsa' ,  
  11. 'BE' => 'Benue' ,  
  12. 'BO' => 'Borno' ,  
  13. 'CR' => 'Cross River' ,  
  14. 'DE' => 'Delta' ,  
  15. 'EB' => 'Ebonyi' ,  
  16. 'ED' => 'Edo' ,  
  17. 'EK' => 'Ekiti' ,  
  18. 'EN' => 'Enugu' ,  
  19. 'GO' => 'Gombe' ,  
  20. 'IM' => 'Imo' ,  
  21. 'JI' => 'Jigawa' ,  
  22. 'KD' => 'Kaduna' ,  
  23. 'KN' => 'Kano' ,  
  24. 'KT' => 'Katsina' ,  
  25. 'KE' => 'Kebbi' ,  
  26. 'KO' => 'Kogi' ,  
  27. 'KW' => 'Kwara' ,  
  28. 'LA' => 'Lagos' ,  
  29. 'NA' => 'Nasarawa' ,  
  30. 'NI' => 'Niger' ,  
  31. 'OG' => 'Ogun' ,  
  32. 'ON' => 'Ondo' ,  
  33. 'OS' => 'Osun' ,  
  34. 'OY' => 'Oyo' ,  
  35. 'PL' => 'Plateau' ,  
  36. 'RI' => 'Rivers' ,  
  37. 'SO' => 'Sokoto' ,  
  38. 'TA' => 'Taraba' ,  
  39. 'YO' => 'Yobe' ,  
  40. 'ZA' => 'Zamfara' ,  
  41. ); 
  42. return $states; 
  43.