From d02f3fa32cff1c550aec44dd2926c05ffcc1a854 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 27 Apr 2017 14:30:46 -0400 Subject: [PATCH] changing the entry id selector in the gravity pdf action hook had the wrong entry id in the gravity pdf hook that appends data to the pdf entry after it has been generated --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index f5ea1c9..9aa68cc 100644 --- a/functions.php +++ b/functions.php @@ -397,7 +397,7 @@ function change_post_content( $form ) { } add_action( 'gfpdf_post_html_fields', function( $entry, $config ) { if($entry['form_id'] === '2'){ - echo "
DISCOUNTED TOTAL: " . $entry['21'] . "
"; + echo "
DISCOUNTED TOTAL: " . $entry['20'] . "
"; } -- 2.17.1