Skip to content

Instantly share code, notes, and snippets.

@pramodjodhani
Created April 17, 2024 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pramodjodhani/ee23de6baba23ea8327ce6ca42138f46 to your computer and use it in GitHub Desktop.
Save pramodjodhani/ee23de6baba23ea8327ce6ca42138f46 to your computer and use it in GitHub Desktop.
Iconic WDS - thank you page - change the position of edit timeslot.
<?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