PDF Now Being Attached - Previously it Was Not

Previously I had configured Pro Reports only to send the email and NOT attach a PDF. This has been working flawlessly until when the most recent reports went out on 3/1 and now they all had a PDF attached. I believe there was recently an update to the Pro Reports plugin and I’m wondering if that’s what caused this. Unfortunately, I don’t remember how I made this happen.

Anyone know how to get this back?

Hey @crawpappy

Welcome to the MainWP community!

PDF attachments can be disabled with this filter:

function mycustom_mainwp_pro_reports_email_attachments( $attachments, $html_to_pdf, $report, $site_id = false ) {
   return '';
}

Do you remember if you inserted it using the Custom Dashboard extension, or perhaps directly in the functions.php file of the Dashboard site’s theme?
Please see if the code is in either of these places.

Thank you. That fixed it. Full tutorial here for those looking in the future.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.