Created
October 3, 2019 01:29
-
-
Save messica/39f676d7c37ff9eb666c5591d871cd41 to your computer and use it in GitHub Desktop.
Attachments fix for Email Log plugin.
This file contains hidden or 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 | |
// Attachments fix for Email Log plugin. | |
function my_pmpro_email_attachments( $attachments, $email ) { | |
if ( null === $attachments ) { | |
return array(); | |
} | |
return $attachments; | |
} | |
add_filter( 'pmpro_email_attachments', 'my_pmpro_email_attachments', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment