/** * Setup the custom FES form field * * @since 2.0 * * @return void */ function edd_fes_simple_shipping_admin_field($field_id, $label = "", $values = array()) { if (!isset($values['label'])) { $values['label'] = __('Shipping', 'edd-simple-shipping'); } $values['no_css'] = true; $values['is_meta'] = true; $values['name'] = 'edd_simple_shipping'; ?> <li class="edd_simple_shipping"> <?php FES_Formbuilder_Templates::legend($values['label']); ?> <?php FES_Formbuilder_Templates::hidden_field("[{$field_id}][input_type]", 'edd_simple_shipping'); ?> <?php FES_Formbuilder_Templates::hidden_field("[{$field_id}][template]", 'edd_simple_shipping'); ?> <div class="fes-form-holder"> <?php FES_Formbuilder_Templates::common($field_id, 'edd_simple_shipping', false, $values, false, ''); ?> </div> <!-- .fes-form-holder --> </li> <?php }