The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Share:
Notifications
Clear all

Dokan Integration

2 Posts
2 Users
0 Reactions
1,074 Views
Posts: 1
Topic starter
(@emilio)
New Member
Joined: 4 years ago

I am trying to integrate the plugin with the option for customers ask a question and ONLY de vendor can answer it.

I am currently using the Dokan plugin and I am having the issue that other customers can answer.

1 Reply
Asti
Posts: 7575
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@emilio,

You can use the code below: 

add_action("wp_head", function () {
    if (!current_user_can("vendor")) {
        echo "<style>.wpd-reply-button{display:none;}</style>";
    }
});

Put the code in the active them functions.php file. 

You should change the red marked part, if it's necessary. Just enter the user role name instead of it. 

Reply
Share: