The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Share:
Notifications
Clear all

Dokan Integration

2 Posts
2 Users
0 Reactions
5,404 Views
Posts: 1
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
(@emilio)
New Member
Joined: 5 years ago
[#1901]

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: 8208
 Asti
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
(@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. 


Reply
Share: