/** * [Add New Field] Ajax receiver * * @since 1.21.0 */ function wpmtst_view_add_field_function() { $new_key = (int) $_REQUEST['key']; $empty_field = array('field' => '', 'type' => 'text', 'class' => ''); wpmtst_view_field_inputs($new_key, $empty_field, true); die; }
<th><?php _e('Properties', 'strong-testimonials'); ?> </th> <th><?php _e('CSS Class Name', 'strong-testimonials'); ?> </th> <th class="controls"> </th> </tr> </thead> <tbody> <?php if (isset($view['client_section'])) { foreach ($view['client_section'] as $key => $field) { wpmtst_view_field_inputs($key, $field); } } ?> </tbody> </table> </div> <div id="add-field-bar"> <input id="add-field" type="button" class="button-secondary" name="add-field" value="<?php _e('Add Field', 'strong-testimonials'); ?> "> </div> </td>