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?
Please login or Register to submit your answer