Skip to content

Commit

Permalink
Tweak: hides the extensions banner temporarily (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf authored Feb 8, 2024
1 parent 6d1bcf3 commit ea2eefc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/views/settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
$hide_ad = get_option( 'wpo_wcpdf_hide_extensions_ad' );
}

if ( ! $hide_ad && ! ( class_exists( 'WooCommerce_PDF_IPS_Pro' ) && class_exists( 'WooCommerce_PDF_IPS_Templates' ) && class_exists( 'WooCommerce_Ext_PrintOrders' ) ) ) {
include( 'extensions.php' );
}
// to improve later: https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/issues/677
// if ( ! $hide_ad && ! ( class_exists( 'WooCommerce_PDF_IPS_Pro' ) && class_exists( 'WooCommerce_PDF_IPS_Templates' ) && class_exists( 'WooCommerce_Ext_PrintOrders' ) ) ) {
// include( 'extensions.php' );
// }

// special temporary promo
include( 'promo.php' );
Expand Down

0 comments on commit ea2eefc

Please sign in to comment.