Skip to content

Instantly share code, notes, and snippets.

@ForGravity
Created March 2, 2018 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ForGravity/39e3ea8bed504cf4d54ebbbeb51bee0f to your computer and use it in GitHub Desktop.
Save ForGravity/39e3ea8bed504cf4d54ebbbeb51bee0f to your computer and use it in GitHub Desktop.
<?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