Store Locator 2.0

[wpsl]
add_filter( ‘wpsl_meta_box_fields’, ‘custom_meta_box_fields’ );

function custom_meta_box_fields( $meta_fields ) {

/**
* If no ‘type’ is defined it will show a normal text input field.
*
* Supported field types are checkbox, textarea and dropdown.
*/
$meta_fields[ __( ‘Filter Input Example’, ‘wpsl’ ) ] = array(
‘my_textinput’ => array(
‘label’ => __( ‘Text input’, ‘wpsl’ ),
‘required’ => true // This will place a * after the label
),
‘my_checkbox’ => array(
‘label’ => __( ‘Checkbox’, ‘wpsl’ ),
‘type’ => ‘checkbox’
),
‘my_textarea’ => array(
‘label’ => __( ‘Textarea’, ‘wpsl’ ),
‘type’ => ‘textarea’
),
‘my_dropdown’ => array(
‘label’ => __( ‘Dropdown’, ‘wpsl’ ),
‘type’ => ‘dropdown’,
‘options’ => array(
‘option1’ => ‘Option 1’,
‘option2’ => ‘Option 2’,
‘option3’ => ‘Option 3’,
‘option4’ => ‘Option 4’,
‘option5’ => ‘Option 5’
)
),
‘my_editor’ => array(
‘label’ => __( ‘Description’, ‘wpsl’ ),
‘type’ => ‘wp_editor’
)
);

return $meta_fields;
}