Plugin Contributor
Ewout
(@pomegranate)
Hello Katja,
Our plugin does not print any barcodes… Are you by any chance using the WooEvents plugin?
It’s a feature that they have baked in but without a setting to disable it… The worst part about this is that it uses an external resource to generate the barcode that can make creating the PDF extremely slow (more information in the forums here: PDFs slow to generate).
You can remove this barcode from the PDF documents with a small code snippet:
add_action( 'wpo_wcpdf_before_html', 'wpo_wcpdf_disable_wooevents_barcodes', 10, 2 );
function wpo_wcpdf_disable_wooevents_barcodes( $document_type, $document ) {
remove_action( 'wpo_wcpdf_after_order_details', 'wooevents_add_barcode', 10, 2 );
}
That’s more of a temporary workaround, I think it’s best if you let the WooEvents developers know you would like to be able to turn this feature off.
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
Hope that helps!
Thank you so much. It worked. 😉
Kind regards
Plugin Contributor
Ewout
(@pomegranate)
Very glad to hear that 🙂
Have a fantastic weekend!