get_meta('_wc_zugferd_invoice_path'); if (!empty($file_path) && file_exists($file_path)) { $attachments[] = $file_path; } return $attachments; } }