Skip to content

Instantly share code, notes, and snippets.

@woogist
Created February 10, 2015 08:07
Show Gist options
  • Save woogist/7f4d44993e2ec3dce7e5 to your computer and use it in GitHub Desktop.
Save woogist/7f4d44993e2ec3dce7e5 to your computer and use it in GitHub Desktop.
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