Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Mar 30, 2021 4:25 pm
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
Mar 31, 2021 9:15 am
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.