frm_pdfs_email_attachment_args not behaving the way it did previously

By: S F | Asked: 04/09/2024
ForumsCategory: Code Helpfrm_pdfs_email_attachment_args not behaving the way it did previously
S F asked 8 months ago
I was using this webhook: https://formidableforms.com/knowledgebase/frm_pdfs_email_attachment_args/ add_filter( 'frm_pdfs_email_attachment_args', 'add_view_to_attached_pdf', 10, 2 );
function add_view_to_attached_pdf( $pdf_args, $args ) {
if($args['form']->id ==5) { //change 5 to the ID of the form
$pdf_args['view'] = 10; // ID of view.
$pdf_args['id'] = $args['entry']->id; // Do this to show the detail view, otherwise, it shows the listing view.
return $pdf_args;
}
} Using this code exactly, with the form ID and View ID changed to match my scenario, it worked fine until today. Now is seems to only generate a blank listing view but not the details view like before. Any ideas on how I might fix this?

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right