Here’s the code snippet I’m using – BUT it’s a Formidable Forms filter so I can’t change it…… looks like you’re both using the same code function and it’s clashing. So I can’t use your plugin.
add_filter(‘frm_notification_attachment’, ‘remove_my_attachment’, 10, 3);
function remove_my_attachment($attachments, $form, $args) {
if ( $args[’email_key’] == 4240 ) { //change 1277 to the email ID that you would like to DROP the attachment for
$attachments = array(); //remove all attachments
}
return $attachments;
}