Hello @tkwing009,
You can append &output=html to the PDF document URL in order to see it as HTML instead of a PDF.
E.g.: if your PDF document URL is:
https://example.com/wp-admin/admin-ajax.php?action=generate_wpo_wcpdf&document_type=invoice&order_ids=123&_wpnonce=abcde12345
You can add &debug=true at the end of the URL to open the document as HTML:
https://example.com/wp-admin/admin-ajax.php?action=generate_wpo_wcpdf&document_type=invoice&order_ids=123&_wpnonce=abcde12345&output=html
Then afterwards, you can right-click the area you are trying to hide, selecting “Inspect Element” to see which CSS classes are present:
Then the CSS will look like this:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
function wpo_wcpdf_custom_styles ( $document_type, $document ) {
?>
.some-class {
display: none !important;
}
<?php
}
If you haven’t used hooks before: https://docs.wpovernight.com/general/how-to-use-filters/