Created
February 1, 2018 15:12
-
-
Save New0/a2d22108eaf7eacd380a66411b46c56a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* 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