woocommerce_email_attachments filter arguments [closed]

A mild stab in the dark, you aren’t telling add_filter your accepted argument count. It’s an important element. It does require you to also be explicit about the priority too.

add_filter( 'woocommerce_email_attachments',
  'attach_terms_conditions_pdf_to_email', 10, 3 );