Skip to content

Instantly share code, notes, and snippets.

@atwellpub
Last active August 29, 2015 14:21
Show Gist options
  • Save atwellpub/e19e0ba5823941f4e135 to your computer and use it in GitHub Desktop.
Save atwellpub/e19e0ba5823941f4e135 to your computer and use it in GitHub Desktop.
remove specific parts of new lead notification email
<?php
/**
* unsets POST fields from form submission email notification
*/
add_filter( 'inbound-email-post-params' , 'inbound_modify_lead_notification_fields' );
function inbound_modify_lead_notification_fields( $fields ) {
unset($fields['inbound_form_name']);
unset($fields['inbound_form_lists']);
unset($fields['inbound_form_id']);
return $fields;
}
@rogeriodasilvadotcom
Copy link

It didn't work for me. It crashes my website. ;-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment