Last active
May 17, 2017 20:55
Example of using the caldera_forms_summary_magic_fields filter to prevent a specific field from showing in Caldera Forms emails using summary magic tags https://calderaforms.com/doc/caldera_forms_summary_magic_fields/
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 | |
/** | |
* Prevent a specific field from showing in Caldera Forms emails using summary magic tags | |
*/ | |
add_filter( 'caldera_forms_summary_magic_fields', function( $fields, $form ) { | |
//change your field ID | |
if( isset( $fields[ 'fld1243567'] ) ){ | |
unset( $fields[ 'fld1243567' ] ); | |
} | |
return $fields; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment