Created
November 28, 2022 06:44
-
-
Save pramodjodhani/f5bf6ef0cfc70c43cd21974cbdd5d772 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Iconic WDS - dont include delivery date/timeslot to invoice generated by Overnight PDF Invoices & Packing Slips for WooCommerce. | |
| * | |
| * @return void | |
| */ | |
| function iconic_wds_exclude_item_data_pdf_invoice() { | |
| $action = filter_input( INPUT_GET, 'action' ); | |
| if ( 'generate_wpo_wcpdf' === $action ) { | |
| remove_filter( 'woocommerce_get_order_item_totals', array( 'Iconic_WDS_Order', 'add_to_order_details' ), 10, 3 ); | |
| } | |
| } | |
| add_action( 'init', 'iconic_wds_exclude_item_data_pdf_invoice' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment