Created
February 10, 2015 08:07
-
-
Save woogist/7f4d44993e2ec3dce7e5 to your computer and use it in GitHub Desktop.
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
add_action( 'wc_custom_thankyou_failed', 'wc_custom_thankyou_failed', 10 ); | |
function wc_custom_thankyou_failed( $order ) { | |
wc_get_template( 'custom-thankyou/failed.php', array( 'order' => $order ) ); | |
} | |
add_action( 'wc_custom_thankyou_successful', 'wc_custom_thankyou_header', 10 ); | |
function wc_custom_thankyou_header( $order ) { | |
wc_get_template( 'custom-thankyou/header.php', array( 'order' => $order ) ); | |
} | |
add_action( 'wc_custom_thankyou_successful', 'wc_custom_thankyou_table', 20 ); | |
function wc_custom_thankyou_table( $order ) { | |
wc_get_template( 'custom-thankyou/table.php', array( 'order' => $order ) ); | |
} | |
add_action( 'wc_custom_thankyou_successful', 'wc_custom_thankyou_customer_details', 30 ); | |
function wc_custom_thankyou_customer_details( $order ) { | |
wc_get_template( 'custom-thankyou/customer-details.php', array( 'order' => $order ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment