The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Dokan Integration
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 30, 2021 8:25 pm
(@emilio)
New Member
Joined: 5 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.
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 31, 2021 1:15 pm
(@asti)
Illustrious Member
Joined: 8 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.