';
+
+ return apply_filters( 'jt_cmb2_get_address_field', $address );
+}
+
+/**
+ * Render 'address' custom field type
+ *
+ * @since 0.1.0
+ *
+ * @param array $field The passed in `CMB2_Field` object
+ * @param mixed $value The value of this field escaped.
+ * It defaults to `sanitize_text_field`.
+ * If you need the unescaped value, you can access it
+ * via `$field->value()`
+ * @param int $object_id The ID of the current object
+ * @param string $object_type The type of object you are working with.
+ * Most commonly, `post` (this applies to all post-types),
+ * but could also be `comment`, `user` or `options-page`.
+ * @param object $field_type_object The `CMB2_Types` object
+ */
+function jt_cmb2_render_address_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
+
+ // can override via the field options param
+ $select_text = esc_html( $field_type_object->_text( 'address_select_state_text', 'Select a State' ) );
+
+ $state_list = array( ''=>$select_text,'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' );
+
+ // make sure we specify each part of the value we need.
+ $value = wp_parse_args( $value, array(
+ 'address-1' => '',
+ 'address-2' => '',
+ 'city' => '',
+ 'state' => '',
+ 'zip' => '',
+ ) );
+
+ $state_options = '';
+ foreach ( $state_list as $abrev => $state ) {
+ $state_options .= '';
+ }
+
+ ?>
+