Skip to content

Instantly share code, notes, and snippets.

@New0
Created February 1, 2018 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save New0/a2d22108eaf7eacd380a66411b46c56a to your computer and use it in GitHub Desktop.
Save New0/a2d22108eaf7eacd380a66411b46c56a to your computer and use it in GitHub Desktop.
<?php
/**
* Remove a field from the entry saved in the DB without removing it from the emails
*/
add_action( 'caldera_forms_submit_complete',function( $form, $referrer, $process_id, $entryid ){
unset( $form['fields']['fld_8768091'] );
Caldera_Forms_Save_Final::save_in_db( $form, $entryid );
}, 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment