AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] User Roles are Not Synching

3 Posts
2 Users
1 Reactions
1,842 Views
Posts: 5
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
(@becca800)
Active Member
Joined: 6 years ago
[#12475]

When someone signs up, there are four roles they can choose from. I created these roles through Ultimate Member and they are now WP roles. I have synched these roles with the Forum Usergroups. But when someone signs up, they are not synched. Instead, the person falls into "Registered" usergroup in WPForo, while their User Role in WP is the correct one they signed up with.

When I open that new user in the WP back end and change their user role in WP, then the User Group in WPForo is updated to the correct one. But it is not automatic on sign up when it needs to be.

Help.


2 Replies
Robert
Posts: 10716
Admin
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
(@robert)
Support Team
Joined: 2 months ago

Hi @becca800,

I'm sorry, but we can't support the user role based registration functions of UM plugin. wpForo user role synchronization is developed for the native WordPress core processes, so we have no idea why UM doesn't support it.

You should contact to UM support and let them know that we use the standard WordPress Hooks to synchronize usergroups with roles. Almost all plugins are based on this standard hooks. They should use that too:

'set_user_role'
'add_user_role'

add_action( 'set_user_role', 'wpforo_update_usergroup_on_role_change', 10, 3 );
add_action( 'add_user_role', 'wpforo_update_usergroup_on_role_change', 10, 2 );

 

Or, they could call our function to initiate forum usregroup synchronization:

wpforo_update_usergroup_on_role_change( $userid, $new_role );

 


Posts: 5
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
(@becca800)
Active Member
Joined: 6 years ago

Thank you for this starting point and great information. I will contact UM. I assumed it would work because of the existing UM integration within your settings but I suppose that is for other things. Thank you!


Share: