Skip to content

Instantly share code, notes, and snippets.

@pmgarman
Created July 6, 2015 13:30
Show Gist options
  • Save pmgarman/4184bdb444aeeb6500a5 to your computer and use it in GitHub Desktop.
Save pmgarman/4184bdb444aeeb6500a5 to your computer and use it in GitHub Desktop.
<?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