Strip slashes from result values

Code

Filename: gppa-strip-slashes-from-result-value.php

<?php
/**
 * Gravity Perks // Populate Anything // Strip slashes from result values
 * https://gravitywiz.com/documentation/gravity-forms-populate-anything/
 */
// Replace "123" with your form ID and "5" with your field ID.
add_filter( 'gppa_get_input_values_123_5', function ( $value, $field, $template, $objects ) {
	return stripslashes( $value );
}, 10, 4 );

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.