Remove Default Behavior of Using a Comma as a Delimiter

Code

Filename: gppa-remove-default-behavior-using-comma.php

<?php
/**
 * Gravity Perks // GP Populate Anything // Remove Default Behavior of Using a Comma as a Delimiter
 * https://gravitywiz.com/documentation/gravity-forms-populate-anything/
 */
add_filter( 'gppa_array_value_to_text', function( $text_value, $array_value ) {
	return json_encode( $array_value );
}, 11, 2 );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.