I am trying to just execute some functions on my cart/checkout page and the vast majority of hooks that I am trying are not working, not even trying to load.
From this list only the first one does something:
add_action(‘woocommerce_before_calculate_totals’, ‘asd123’, 10, 1);
add_action(‘woocommerce_before_cart’, ‘asd123’, 5, 1);
add_action(‘woocommerce_before_cart_table’, ‘asd123’, 5, 1);
add_action(‘woocommerce_before_cart_contents’, ‘asd123’, 5, 1);
add_action( ‘woocommerce_before_cart’, ‘asd123’, 10 );
add_action( ‘woocommerce_before_cart_table’, ‘asd123’, 10 );
add_action( ‘woocommerce_before_cart_contents’, ‘asd123’, 10 );
My asd123() is literally just a custom log. I am losing my mind.
I have tried all of them on functions.php, a custom plugin, with different themes, with only WC installed. Nothing.
[ad_2]