Skip to content

Commit 3d2e7ca

Browse files
authored
Add form title to response
For analytics and stuff.
1 parent 7726a4b commit 3d2e7ca

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
@@ -22,6 +22,7 @@ function wplf_ajax_submit_handler() {
2222

2323
// form-specific validation
2424
$return->slug = $form->post_name;
25+
$return->title = $form->post_title;
2526
$return = apply_filters( "wplf_{$form->post_name}_validate_submission", $return );
2627
$return = apply_filters( "wplf_{$form->ID}_validate_submission", $return );
2728
}

0 commit comments

Comments
 (0)