Skip to content

Instantly share code, notes, and snippets.

@isaumya
Created September 19, 2016 15:21
Show Gist options
  • Save isaumya/a24d75656def8c6c3e20e78dd525218b to your computer and use it in GitHub Desktop.
Save isaumya/a24d75656def8c6c3e20e78dd525218b to your computer and use it in GitHub Desktop.
Disable sanitization on Gravity Form for WordPress - prior to v2.0 update
<?php
/* Please note this filter will not work on Gravity Forms v2.0+
* If your GF is not capturing values like ajgsdn?12332#?fds#^%
* then use the following filter in GF v2.0 prior
**/
add_filter( 'gform_sanitize_entry_value', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment