How to create new users in WordPress after register on XenForo

Table of Contents

  • An Important Note About WP User Passwords
  • 1. Guided password resets
  • 2. Login to XenForo from WordPress
  • 3. Only Sync Users for Upgrades

As of XFtoWP 1.6+ you can now register users to WordPress after they have registered on your XenForo forum.

This new feature requires the User Insert Webhook to be created and received by your WordPress website.

Read this tutorial on how to create Webhooks.

XenForo user insert Webhook to WordPress

Once you have setup the Webhook you can go to WP admin > XFtoWP > User syncing > XenForo and enable the Create new user on register to auto-register users to WP after they originally register from your XenForo forum.

Enable XenForo user registrations to WordPress.

To see this functionality work for yourself, register a test user on your forum and check your WP site afterwards to find the new user. Combine this with XFtoWP’s powerful syncing tools and custom user fields, you have huge potential here.

An Important Note About WP User Passwords

As a security measure, passwords are not sent over Webhooks requests. Therefore, when a user is created in WordPress, they are assigned a random password.

This can be disruptive if a user attempts to login directly to the WP site before getting their passwords in sync, so below are some proposed workarounds to help these users login with as little friction as possible:

1. Guided password resets

In your welcome email, you can instruct your user to go to the WP reset password page and set a “master password” for their accounts.

You can enable the Update email and password changes from the User Syncing admin panel to sync these changes.

2. Login to XenForo from WordPress

A simple measure to take is to instruct users to login through the WP login page (https://domain.com/wp-login.php) with the XFtoWP auto-login and redirect features enabled.

XFtoWP offers a setting that checks the login details entered on the WordPress login screen with the user at Xenforo, and if matched, connects the users. This process will also sync the passwords to the WordPress user.

You can enable the Login with XenForo user credentials setting in the WP admin > XFtoWP > User syncing admin panel.

Login to XenForo from the WordPress admin screen

This setting also pairs well with the Redirect to forum after login, which redirects the user from the WP login screen as a logged-in XenForo user on your forum and ensures both accounts are marked as logged in at the same time.

Note: To use these features requires a Super user API key with auth permissions.

3. Only Sync Users for Upgrades

A common fallacy of integrations is that every user has to be connected and perfectly synced. A core philosophy of XFtoWP is to sync-as-you go and keep both of your websites as widely usable as possible.

While this may not fit all setups, your forum should have its own free registration with access to a certain level of content and capabilities. These users do not necessarily need to be added to your WP site all at once, and maybe not at all.

In this same scenario, your WordPress site should only allow users to register after they have purchased an upgrade, or taken another special action.

If you pair XFtoWP with an eCommerce or membership integration, you can rely on XFtoWP’s excellent user syncing processes to register or connect a forum user to a purchase, including all details like passwords and custom fields.

By thinking in a less is more philosophy, the only syncing storage needed is for users who pay or taken a greater step than filling out a registration form, which makes logging and syncing actions more viable and manageable for you.