PodsField_Pick::data_us_states PHP Method

data_us_states() public method

Data callback for US States
Since: 2.3
public data_us_states ( string $name = null, string | array $value = null, array $options = null, array $pod = null, integer $id = null ) : array
$name string The name of the field
$value string | array The value of the field
$options array Field options
$pod array Pod data
$id integer Item ID
return array
    public function data_us_states($name = null, $value = null, $options = null, $pod = null, $id = null)
    {
        $data = array('AL' => __('Alabama'), 'AK' => __('Alaska'), 'AZ' => __('Arizona'), 'AR' => __('Arkansas'), 'CA' => __('California'), 'CO' => __('Colorado'), 'CT' => __('Connecticut'), 'DE' => __('Delaware'), 'DC' => __('District Of Columbia'), 'FL' => __('Florida'), 'GA' => __('Georgia'), 'HI' => __('Hawaii'), 'ID' => __('Idaho'), 'IL' => __('Illinois'), 'IN' => __('Indiana'), 'IA' => __('Iowa'), 'KS' => __('Kansas'), 'KY' => __('Kentucky'), 'LA' => __('Louisiana'), 'ME' => __('Maine'), 'MD' => __('Maryland'), 'MA' => __('Massachusetts'), 'MI' => __('Michigan'), 'MN' => __('Minnesota'), 'MS' => __('Mississippi'), 'MO' => __('Missouri'), 'MT' => __('Montana'), 'NE' => __('Nebraska'), 'NV' => __('Nevada'), 'NH' => __('New Hampshire'), 'NJ' => __('New Jersey'), 'NM' => __('New Mexico'), 'NY' => __('New York'), 'NC' => __('North Carolina'), 'ND' => __('North Dakota'), 'OH' => __('Ohio'), 'OK' => __('Oklahoma'), 'OR' => __('Oregon'), 'PA' => __('Pennsylvania'), 'RI' => __('Rhode Island'), 'SC' => __('South Carolina'), 'SD' => __('South Dakota'), 'TN' => __('Tennessee'), 'TX' => __('Texas'), 'UT' => __('Utah'), 'VT' => __('Vermont'), 'VA' => __('Virginia'), 'WA' => __('Washington'), 'WV' => __('West Virginia'), 'WI' => __('Wisconsin'), 'WY' => __('Wyoming'));
        return apply_filters('pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id);
    }