froger-me / wp-remote-users-sync

Synchronise users across WordPress websites
GNU General Public License v3.0
71 stars 34 forks source link

Programatically trigger user sync from site A to site B, for user that doesn't exist on site B #57

Open verde-io opened 2 years ago

verde-io commented 2 years ago

Hello,

I am trying to export / import users from an existing site to a new one, while also keeping the passwords. As the export feature doesn't do that, I was hoping perhaps programatically triggering an update might be a solution. I see that updating something like display name via the WP admin for a user on site A, will force the creation of the user on site B, while also porting the password. It seems that doing the same via wp_update_user or update_user doesn't work, unless I am doing something wrong.

Can you please provide any pointers? Paying for support would not be an issue as it's quite urgent.

Thanks, Tudor

verde-io commented 2 years ago

To further comment, I realise now that even with the profile update on site A, the password is not carried over to the synced user on site B, is that correct?

If that's the case, is there any solution to this besides forcing existing users on site A to update their password to force a password sync to site B?