How to hide a div section when user is logged in, in single product woocommerce
When the user logged in to WordPress then the logged-in class added in body tag. Suppose if you have a div as: <div class=”hide_div_user_login”> some content here </div> Put this CSS in the style.css file. .logged-in .hide_div_user_login{ display:none; } Hope it will work for you.