Site logo

Archived topic

How to Create & Add Custom Hook before Woocommerce Tabs Starts

6 replies · Started by Manish Jassal on June 15, 2019

Viewing posts 1–7 of 7

Hi Admin,

I create a custom hook using elements. But how I implement it before Woocommerce Tabs, as I couldn't find any place in the hook location list.

My custom hook name is "woocommerce_before_tabs". Please tell me what would I do.

Hi there,

the hook that exists just before the tabs is:

woocommerce_after_single_product_summary

Hi David, this hook seems to work wrong. It displays the content after the tabs not before. I also would like to add some information before the tabs. Is there a workaround?

Many thanks

Hi there,

In the hook element try setting the Priority to a lower number ( it defaults at 10 ) - 5 should move it up.

Hi David,

just tried it it, but unfortunately it doesn't accept the "-". It's always deleted on saving.

Works fine without the "-" and Priority set to 5. Thanks a lot :-)

Glad to be of help. Sorry that 'hyphen' was confusing. Priorty starts from 1 to whatever... and has to be a positive integer.

This archived topic is closed to new replies.