Woocommerce is_purchasable hook for variable products
I'm using the below code to make all products on woocommerce not purchasable unless the user is signed in. function et_remove_atc(){ if( ! is_user_logged_in() ){ return false; }else{ return true; } } add_filter( 'woocommerce_is_purchasable', 'et_remove_atc' ); This only works for…