Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using Gravity PDF gfpdf_pdf_field_content filter to include Image Choices in the PDF
<?php
add_filter('gfpdf_pdf_field_content', function ($value, $field, $entry, $form) {
if ( !function_exists('gf_image_choices') ) {
return $value;
}
// Update to suit
$image_width = 80;
return gf_image_choices()->gfpdf_ic_field_content($value, $field, $entry, $form, $image_width);
}, 10, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment