Skip to content

Instantly share code, notes, and snippets.

@kjohnson

kjohnson/setting-field-select.php Secret

Last active Sep 20, 2016
Embed
What would you like to do?
<?php
// ...
$this->_settings[ 'field_map' ] = array(
'name' => 'field_map',
'type' => 'field-select',
'label' => __( 'Field Map', 'ninja-forms'),
'width' => 'full',
'group' => 'primary',
/* Optional */
'field_types' => array(
'firstname',
'lastname'
),
'field_value_format' => 'merge_tag` // merge_tag (default), key
);
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment