i a have a woocommerce file “checkout-form.php”. I want remove the following actions via functions.php
<?php do_action( ‘woocommerce_checkout_after_order_review’ ); ?>
<?php do_action( ‘woocommerce_after_checkout_form’, $checkout ); ?>
I used the following code in the functions.php but nothing happens:
remove_action( ‘woocommerce_checkout_after_order_review’, 10);
remove_action( ‘woocommerce_after_checkout_form’, $checkout, 20);
i cant find the error. When i delete the “actions” manually in the woocommerce file it works. with the “remove_action function in the functions.php i have no effect.
Where is my error?
Read more here:: remove action from woocommerce file