Check the custom hooks documentation here: https://v3-docs.chevereto.com/customization/theme.html#custom-hooks