woocommerce blank page after clicking add to cart [closed]

After so much research I figured it that the issue is due to a custom function I was trying to hook to the product page. All this while the custom function was wrongly hooked and I corrected it now.