ID && $current_user->has_cap('manage_options'))) {exit;} $field_id = isset($_POST) && isset($_POST['field_id']) ? intval($_POST['field_id']) : 0; if (!$field_id) {exit;} $custom_field = get_term_by('id', $field_id, 'wpsc_ticket_custom_fields'); $wpsc_tf_label = get_term_meta( $custom_field->term_id, 'wpsc_tf_label', true); $wpsc_tf_extra_info = get_term_meta( $custom_field->term_id, 'wpsc_tf_extra_info', true); $wpsc_tf_type = get_term_meta( $custom_field->term_id, 'wpsc_tf_type', true); $wpsc_tf_has_options = 0; $wpsc_tf_options = get_term_meta( $custom_field->term_id, 'wpsc_tf_options', true); $wpsc_tf_personal_info = get_term_meta( $custom_field->term_id, 'wpsc_tf_personal_info', true); $wpsc_tf_limit = get_term_meta( $custom_field->term_id, 'wpsc_tf_limit',true); $wpsc_date_range = get_term_meta($custom_field->term_id, 'wpsc_date_range', true); $date_range_from = get_term_meta( $custom_field->term_id, 'date_range_from', true); $date_range_to = get_term_meta( $custom_field->term_id, 'date_range_to', true); $wpsc_time_format = get_term_meta($custom_field->term_id, 'wpsc_time_format', true); $tf_types = array(1,5,7,8,9); $style = ''; if(!in_array($wpsc_tf_type,$tf_types)){ $style = "display:none"; } // date range $wpsc_date_field = 0 ; if($wpsc_tf_type == '6' ){ $wpsc_date_field = 1; } $field_types = $wpscfunction->get_custom_field_types(); //time field $wpsc_time_field = 0; if ($wpsc_tf_type == '21') { $wpsc_time_field = 1; } ob_start(); ?>

$body, 'footer' => $footer ); wp_send_json($output);