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
How to set a defaul...
 
Notifications
Clear all

[Solved] How to set a default role for people commenting

2 Posts
2 Users
0 Reactions
1,267 Views
Posts: 7
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
(@keengamer)
Active Member
Joined: 5 years ago
[#5214]

Hello,

 

We have a problem. If someone comments on our site using Twitter or Facebook or other social network then he automatically gets an account. The problem is that we automatically assign our new users a Trial role (for our possible future writers) with some important rights for them. 

 

But we don't want to have the same role assigned to people only commenting and using a login button via some social network. They must remain and keep the User role and not any other.

 

How can we do it??

 

Thank you.

 

Regards,

Karel


1 Reply
Tom
Posts: 512
 Tom
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
(@tomson)
Honorable Member
Joined: 10 years ago

@keengamer,

Users who login first time get the default user role which has been set in WordPress Settings > General admin page:

WordPress Default User Role

wpDiscuz calls WordPress user creating function, and it does all next steps. wpDiscuz doesn't have any control over the user creating and role assigning process. It just calls WordPress functions and says create a user with this email (social login account email), that's it. So you should do either change the default user role or find a way to control user creating function of WordPress.

 


Share: