Last active
August 29, 2015 14:21
-
-
Save atwellpub/e19e0ba5823941f4e135 to your computer and use it in GitHub Desktop.
remove specific parts of new lead notification email
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 | |
/** | |
* 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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It didn't work for me. It crashes my website. ;-(