wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Dokan Integration

2 Posts
2 Users
0 Likes
383 Views
Emilio
Posts: 1
Topic starter
(@emilio)
New Member
Joined: 2 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: 5194
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 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: