wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Dokan Integration


Emilio
Posts: 1
Topic starter
(@emilio)
New Member
Joined: 6 months 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: 3337
 Asti
Support
(@asti)
Support member
Joined: 4 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: