Answer by mcorkum for Enable local delivery if certain user role is logged in
current_user_can doesn't check the role, it checks permissions which I don't think is what you want. Try this:function wholesale_local_delivery($available_methods) { global $woocommerce; global...
View ArticleEnable local delivery if certain user role is logged in
I'm currently working to create a wholesale option through woocommerce. I have the wholesale infrastructure down when you are logged in and have the user role "wholesale_customer". However I'm one step...
View Article
More Pages to Explore .....