Support » Plugin: YITH WooCommerce Product Countdown » Adding hooks to theme

  • Resolved advantagen


    In one of the previous support topics, I came across the following advice:

    make sure that your theme has the following woocommerce’s hooks



    you can also try to add this to the functions.php file of your theme

    if ( function_exists( ‘YITH_WPC’ ) ) {

    add_action( ‘woocommerce_before_single_product’, array( YITH_WPC(), ‘check_show_ywpc_product’ ), 5 );


    So my question is, how would I go about adding or ensuring that my theme already has these hooks?

    The reason I ask is because, no matter what I do, I can only get the timer to show if I use the shortcode, and then it’s only shown in the description (vs. above the title, for example).

    I already did the second part (adding the function to functions.php), but that doesn’t seem to have helped.

    Thank you!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding hooks to theme’ is closed to new replies.