I have used default woocommerce templates for shop, cart and single page. I have not removed any hooks either but also I am not getting any message. Any Idea? add_action( 'woocommerce_before_single_product', 'Cusotm_wc_print_notices', 10 ); function Cusotm_wc_print_notices() { echo 'Hook is working fine'; } I am getting this message 'Hook is working fine' but not wc_print_notices();.
Originally asked by Saroj Shrestha on Stack Exchange (stackoverflow) (CC BY-SA 3.0).