Hello,
I’m using custom layouts for both product category and single product pages, but I noticed that the following WooCommerce hooks used by a plugin don’t get triggered:
add_action('woocommerce_before_shop_loop', [$this, 'prepare_notices'], 10);
add_action('woocommerce_before_single_product_summary', [$this, 'prepare_notices'], 10);
The issue is that these actions belong to a third-party plugin which I cannot modify directly.
I read that using a “Hook Element” in the Pro Theme Layout Builder could solve this, but I can’t find any Hook Element available in my editor.
Could you please advise how I can make sure these hooks fire properly on my custom layouts? Is there a setting I’m missing, or another recommended approach?
Thank you for your help!