Created
March 2, 2018 23:02
-
-
Save ForGravity/39e3ea8bed504cf4d54ebbbeb51bee0f to your computer and use it in GitHub Desktop.
This file contains 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 | |
add_filter( 'fg_easypassthrough_field_values', 'fg_bypass_passthrough', 10, 2 ); | |
function fg_bypass_passthrough( $field_values = array(), $form_id = 0 ) { | |
// If passthrough=0 is in the query parameters, return an empty array. | |
if ( '0' == rgget( 'passthrough' ) ) { | |
return array(); | |
} | |
return $field_values; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment