Hi @werbeagenturcommotion,
You can use a small code snippet for this:
// exclude certain payment methods from automatic pdf creation
add_filter( 'wpo_wcpdf_custom_attachment_condition', 'wpo_wcpdf_exclude_payment_method', 100, 4 );
function wpo_wcpdf_exclude_payment_method ( $condition, $order, $status, $document ) {
$excluded_methods = array( 'stripe', 'bacs' );
$payment_method = get_post_meta( $order->id, '_payment_method', true );
if ( $document == 'invoice' && in_array( $payment_method, $excluded_methods ) ) {
return false;
} else {
return $condition;
}
}
Add the desired payment methods to the excluded_methods
array. This code snippet should be placed in the functions.php of your child theme. If you haven’t worked with code snippets or functions.php before please read this: How to use filters