Created
February 9, 2022 06:12
-
-
Save pramodjodhani/9fea89d3278318a09125bddd91516a95 to your computer and use it in GitHub Desktop.
Iconic Delivery slots: Don't delete timeslot data from the order when it is cancelled.
This file contains 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 Delivery slots: Dont delete timeslot data from the order when it is cancelled. | |
* | |
* @return void | |
*/ | |
function iconic_wds_dont_delete_timeslot_data_when_order_is_cancelled() { | |
remove_action( 'woocommerce_order_status_changed', array( 'Iconic_WDS_Order', 'status_changed' ), 10 ); | |
} | |
add_action( 'init', 'iconic_wds_dont_delete_timeslot_data_when_order_is_cancelled' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment