Hi Jamie,
Yes, you could hack up class-wcpdf-export.php, but generally I would not recommend that, as it would be overwritten with every update…
I did test that filter, so it should work. Did it give you a specific error? If you let me know what error it gives you I can try to help you figure out the problem. This method is update proof and basically follows the same logic/method as the part that you refer to in the core plugin file.
Sometimes the site breaks when you copy paste code into functions.php simply because there’s one missing character, or it was accidentally placed inside another function or after the last ?>
.
As a general rule, you can always delete the ‘?>’ is there is one at the end (only if it’s at the very end!) of functions.php – it’s not needed! And always paste custom code at the end of the file.
Let me know!
Ewout