Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dkjensen committed Sep 13, 2024
1 parent ba020ec commit 2e368d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ Adds ability for users and guests to download their WooCommerce cart as PDF. Use
Add the following code snippet to your themes functions.php:

function child_theme_wc_cart_pdf_destination( $dest ) {
if ( class_exists( '\Mpdf\Output\Destination' ) ) {
$dest = \Mpdf\Output\Destination::INLINE;
if ( class_exists( '\WCCartPDF\Mpdf\Output\Destination' ) ) {
$dest = \WCCartPDF\Mpdf\Output\Destination::INLINE;
}

return $dest;
Expand Down

0 comments on commit 2e368d0

Please sign in to comment.