Skip to content

Commit 2d90a51

Browse files
committed
added form id to submission response, useful for client side callbacks.
1 parent 2f2d22d commit 2d90a51

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

inc/wplf-ajax.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function wplf_ajax_submit_handler() {
6666

6767
$return->submission_id = $post_id;
6868
$return->submission_title = $post_title;
69+
$return->form_id = $form->ID;
6970

7071
// return the success message for the form
7172
$return->success = apply_filters( 'the_content', get_post_meta( $form->ID, '_wplf_thank_you', true ) );

0 commit comments

Comments
 (0)