Notifications
Clear all

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

9 Posts
3 Users
0 Likes
731 Views
good999
Posts: 12
Topic starter
(@good999)
Active Member
Joined: 3 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)
Active Member
Joined: 3 years ago

picture 2

Reply
6 Replies
Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 868

@good999

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

Reply
good999
(@good999)
Joined: 3 years ago

Active Member
Posts: 12

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

Reply
good999
(@good999)
Joined: 3 years ago

Active Member
Posts: 12

@馬丁Can't he update automatically?

Reply
Robert
Admin
(@robert)
Joined: 7 years ago

Support Team
Posts: 9912

@good999,

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

Reply
good999
(@good999)
Joined: 3 years ago

Active 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

Reply
Robert
Admin
(@robert)
Joined: 7 years ago

Support Team
Posts: 9912

@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.

Reply
good999
Posts: 12
Topic starter
(@good999)
Active Member
Joined: 3 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

Reply