Skip to content

Instantly share code, notes, and snippets.

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