skip to Main Content

Trigger a javascript function when a WooCommerce order comes in processing status

I am having trouble calling a js function after I process a Woocommerce order. I have the following code in my functions.php: add_action( 'wp_enqueue_scripts', 'enqueue_so_18552010' ); add_action( 'woocommerce_order_status_processing', 'purchaseCompleted' ); function enqueue_so_18552010() { wp_enqueue_script( 'my-java', // Handle get_stylesheet_directory_uri() . '/js/custom.js?V=2020.08.01v12',…

VIEW QUESTION
Back To Top
Search