Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using Gravity PDF gfpdf_field_product_value filter to include Image Choices in the product table
<?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