Last active
May 11, 2021 00:54
-
-
Save jetsloth/7c1af62c6844d1b363b5ecd94d87e23f to your computer and use it in GitHub Desktop.
Using Gravity PDF gfpdf_field_product_value filter to include Image Choices in the product table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter("gfpdf_field_product_value", function( $html, $products, $field, $form, $entry, $self ){ | |
if ( !function_exists('gf_image_choices') ) { | |
return $html; | |
} | |
// Update to suit | |
$image_width = 80; | |
return gf_image_choices()->gfpdf_ic_field_product_value($html, $products, $field, $form, $entry, $image_width); | |
}, 10, 6); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment