Large number of WC hooks not working?

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer