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
if ( !function_exists( 'wc_ng_counties_add_counties' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-nigeria-states/woocommerce-nigeria-states.php'; } // The states. $states = null; // NOTICE! Understand what this does before running. $result = wc_ng_counties_add_counties($states);
Defined (1)
The function is defined in the following location(s).
- /woocommerce-nigeria-states.php
- function wc_ng_counties_add_counties ( $states ) {
- $states ['NG' ] = array (
- 'AB' => 'Abia' ,
- 'FC' => 'Abuja' ,
- 'AD' => 'Adamawa' ,
- 'AK' => 'Akwa Ibom' ,
- 'AN' => 'Anambra' ,
- 'BA' => 'Bauchi' ,
- 'BY' => 'Bayelsa' ,
- 'BE' => 'Benue' ,
- 'BO' => 'Borno' ,
- 'CR' => 'Cross River' ,
- 'DE' => 'Delta' ,
- 'EB' => 'Ebonyi' ,
- 'ED' => 'Edo' ,
- 'EK' => 'Ekiti' ,
- 'EN' => 'Enugu' ,
- 'GO' => 'Gombe' ,
- 'IM' => 'Imo' ,
- 'JI' => 'Jigawa' ,
- 'KD' => 'Kaduna' ,
- 'KN' => 'Kano' ,
- 'KT' => 'Katsina' ,
- 'KE' => 'Kebbi' ,
- 'KO' => 'Kogi' ,
- 'KW' => 'Kwara' ,
- 'LA' => 'Lagos' ,
- 'NA' => 'Nasarawa' ,
- 'NI' => 'Niger' ,
- 'OG' => 'Ogun' ,
- 'ON' => 'Ondo' ,
- 'OS' => 'Osun' ,
- 'OY' => 'Oyo' ,
- 'PL' => 'Plateau' ,
- 'RI' => 'Rivers' ,
- 'SO' => 'Sokoto' ,
- 'TA' => 'Taraba' ,
- 'YO' => 'Yobe' ,
- 'ZA' => 'Zamfara' ,
- );
- return $states;
- }