Notifications
Clear all

wpForo 1.x.x [Solved] Member groups will not be automatically synchronized

9 Posts
3 Users
0 Reactions
1,169 Views
good999
Posts: 12
Topic starter
(@good999)
Eminent Member
Joined: 5 years ago

The member group will not be automatically synchronized. As shown in the picture, my picture 1 has been updated, but the picture 2 has not been updated
How to make the place in Figure 2 be updated instantly?

8 Replies
good999
Posts: 12
Topic starter
(@good999)
Eminent Member
Joined: 5 years ago

picture 2

6 Replies
Moderator
(@martin)
Joined: 8 years ago

Support Team
Posts: 992

@good999

just go out from that page and come back to the Usergroup admin page. Don't refresh the page.

good999
(@good999)
Joined: 5 years ago

Eminent Member
Posts: 12

@馬丁I tried it, the result is still the same, you must press the [Synchronize] button to update it effectively

good999
(@good999)
Joined: 5 years ago

Eminent Member
Posts: 12

@馬丁Can't he update automatically?

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10590

@good999,

It's being done automatically for new registered users. But the usergroup list  should be reopened see the change (not refreshed).

good999
(@good999)
Joined: 5 years ago

Eminent Member
Posts: 12

羅伯特Not a new registered user, but an old user. Change the user role through Hubspot Link Ultimate Member, so after automatically changing the user, picture 1 will not be updated

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10590

@good999,

It works fine if you change it in Dashboard > Users > Edit user screen and in wpForo user Profile > Account page. We can't support other places, I have no idea how UM does it, it may not support the standard WordPress hooks for user role updates.

wpForo uses these two hooks to detect the user role changes:

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 );

If UM doesn't use those, then there is no way to update the usergroup automatically.

good999
Posts: 12
Topic starter
(@good999)
Eminent Member
Joined: 5 years ago

I know where the problem is, because the role I created in UM is separate from wp, so it caused an error, thank you very much