Created
September 3, 2017 13:18
-
-
Save svenl77/767fa905906a5c358e15620f89dd07ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$field_wp_type = isset( $customfield['field_wp_type'] ) ? $customfield['field_wp_type'] : false; | |
$form_fields['general']['field_wp_type'] = new Element_Select( '<b>' . __( 'Save field as ', 'buddyforms' ) . '</b>', "buddyforms_options[form_fields][" . $field_id . "][field_wp_type]", | |
array( | |
'user_meta' => 'User Meta', | |
'post_meta' => 'Post Meta Custom Field', | |
'user_meta' => 'User Meta', | |
), array( | |
'value' => $field_wp_type, | |
'class' => 'field_wp_type', | |
'field_id' => $field_id, | |
'id' => 'field_wp_type' . $field_id, | |
) ); | |
$field_visibility = isset( $customfield['field_visibility'] ) ? $customfield['field_visibility'] : false; | |
$form_fields['general']['field_visibility'] = new Element_Select( '<b>' . __( 'Field visible for ', 'buddyforms' ) . '</b>', "buddyforms_options[form_fields][" . $field_id . "][field_visibility]", | |
array( | |
'logged_in' => 'Logged In', | |
'logged_off' => 'Logged Off', | |
), array( | |
'value' => $field_visibility, | |
'class' => 'field_visibility', | |
'field_id' => $field_id, | |
'id' => 'field_visibility' . $field_id, | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment