How to hook into and replace custom_redirect_after_purchase() function?
-
Hi @nicolamustone, I’m hoping you can quickly help me with something: I’m basically trying to replace the function ‘custom_redirect_after_purchase()’ (line 119 in ‘woocommerce-custom-thankyou.php’) with my own function using hooks but I’m having trouble removing the action ‘add_action( ‘template_redirect’, array( $this, ‘custom_redirect_after_purchase’ ) );’ (line 94 in ‘woocommerce-custom-thankyou.php’) so that I can replace with my own action/function. I’m hoping you could help me by supplying the proper remove_action() and add_action() syntax. Thanks!
- The topic ‘How to hook into and replace custom_redirect_after_purchase() function?’ is closed to new replies.