Created
January 7, 2020 20:11
-
-
Save spivurno/f3572f85bf6b6be2f059572170f4ca7b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// Update "123" to your child form ID and "4" to the child File Upload field ID. | |
add_filter( 'gpnf_display_value_123_4', function( $value, $field, $form, $entry ) { | |
$value['label'] = sprintf( '<img src="%s">', $value['value'] ); | |
return $value; | |
}, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment