display product related to user role in woocomerce

sir i want to display these date that are related to role of user like regular in word press please provide code for this problem

name;

// echo $term->name;
//if($term->name==”Regular” || $term->name==”Retailer” && $user->roles[0]==””)
if($term->name==”Regular” && $user->roles[0]==””){
//echo “fgfdgfd gdfgfdg dfg dfg dfg”;

?>

Read more here:: display product related to user role in woocomerce

Leave a Reply

Your email address will not be published. Required fields are marked *