Created
March 4, 2020 18:54
-
-
Save spivurno/82fe0327b144a5209315be8ee358ef27 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 | |
/** | |
* Gravity Perks // Populate Anything // Add Line Break Between Live Merge Tag Checkbox Values | |
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/ | |
*/ | |
// Update "123" with your form ID and "4" with your Checkbox field ID. | |
add_filter( 'gppa_live_merge_tag_value_123_4', function( $value, $merge_tag, $form, $field_id, $entry_values ) { | |
$values = array_map( 'trim', explode( ',', $value ) ); | |
return implode( '<br>', $values ); | |
}, 10, 5 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment