Created
August 1, 2022 11:49
-
-
Save tdmrhn/c3bc58762cae712fa168c2c10bf5b1a5 to your computer and use it in GitHub Desktop.
Blocksy thank you page hooks
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 | |
// before table | |
add_action( 'woocommerce_thankyou_order_received_text', function ( $order_id ) { | |
echo do_shortcode( '[blocksy-content-block id="XXX"]' ); | |
}); | |
// after table | |
add_action( 'woocommerce_thankyou', function ( $order_id ) { | |
echo do_shortcode( '[blocksy-content-block id="XXX"]' ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment