From: Anthony Talarico Date: Thu, 27 Apr 2017 18:30:46 +0000 (-0400) Subject: changing the entry id selector in the gravity pdf action hook X-Git-Tag: v1.0.16^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=d02f3fa32cff1c550aec44dd2926c05ffcc1a854;p=WP-Themes%2Fmackinacbridge.git 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 --- 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'] . "
"; }