Automatically create Discourse user on Wordpress registration

The woocommerce_created_customer action seems to work well.

In addition to the code above, this is also useful to mark the email address as verified.

delete_user_meta( $user_id, 'discourse_email_not_verified' );

It’s working so far. Thanks for the help!!!