Last active
May 17, 2017 20:55
-
-
Save Shelob9/a628e538f9ab3de3b7d2dd783e5036ab to your computer and use it in GitHub Desktop.
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