- fixed ID's duplicates when more than 1 form is loaded at same page;

This commit is contained in:
nikitozzzzzzz
2017-12-11 10:02:28 +02:00
parent 63dc4ecc0c
commit e686d3c613
+1 -1
View File
@@ -6,7 +6,7 @@
add_action('um_after_form_fields', 'um_add_form_identifier');
function um_add_form_identifier($args){ ?>
<input type="hidden" name="form_id" id="form_id" value="<?php echo $args['form_id']; ?>" />
<input type="hidden" name="form_id" id="form_id_<?php echo $args['form_id']; ?>" value="<?php echo $args['form_id']; ?>" />
<?php
}