Created
April 17, 2024 08:54
-
-
Save pramodjodhani/ee23de6baba23ea8327ce6ca42138f46 to your computer and use it in GitHub Desktop.
Iconic WDS - thank you page - change the position of edit timeslot.
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 WDS - TY page - change the position of edit timeslot. | |
* | |
* @return void | |
*/ | |
function iconic_wds_change_position_of_edit_timeslot_ty_page() { | |
remove_action( 'woocommerce_order_details_after_order_table', array( 'Iconic_WDS_Edit_Timeslots', 'maybe_display_checkout_fields' ), 10 ); | |
add_action( 'woocommerce_before_thankyou', array( 'Iconic_WDS_Edit_Timeslots', 'maybe_display_checkout_fields' ), 10 ); | |
} | |
add_action( 'init', 'iconic_wds_change_position_of_edit_timeslot_ty_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment