Created
July 6, 2015 13:30
-
-
Save pmgarman/4184bdb444aeeb6500a5 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
<?php | |
function pmgarman_custom_wc_thankyou_action( $order_id = 0 ) { ?> | |
<script> | |
var leadNumber = '<?php echo $order_id; ?>'; | |
</script> | |
<?php } | |
add_action( 'woocommerce_thankyou', 'pmgarman_custom_wc_thankyou_action' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment