Support » Plugin: YITH WooCommerce Product Countdown » Can you fix the hooking filter?

  • Hey,
    Thanks for this plugin, I see that you have this filter:

    $args = apply_filters( 'ywpc_showing_position_product', array(
                        'hook'     => 'before_single_product',
                        'priority' => 5 ) );

    But then when you add action you have:
    add_action( 'woocommerce_' . $args['hook'] . '_summary', array( $this, 'add_ywpc_product' ), $args['priority'] );

    Making it impossible to hook in the countdown on any action except one that begins with woocommerce_ and ends with_summary

    Can that be fixed so the filter can actually change the whole hook?

    Thanks,

    Kadence Themes

    https://wporg.ibadboy.net/plugins/yith-woocommerce-product-countdown/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello! What you ask is not possible because the premium version of the plugin uses those specific hooks beginning with woocommerce_ and ending with _summary

    ? Why not just update the premium version to have the whole filter instead of only the middle?

    Forgive me I just thought this made more sense. Any chance you would add a filter so someone could control where this outputted?

    Kadence Themes

    Hi There!

    I’m using your YITH WooCommerce Product Countdown (really happy of it).
    Nevertheless, I would like to order my products by the time they have (for instance, less than 5 days, less than 3 days etc). For now, in visual composer, when I choose an element “Show the products”, I don’t have the option to order them by the time.

    Can you help me with that?

    Thanks in advance!!

    H.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can you fix the hooking filter?’ is closed to new replies.