How to Add a New User to a Third Party System (like MailChimp)

You can use the leaky_paywall_new_subscriber action to do something with the new user data after they are added to the WordPress user table. For example, you could add them to a MailChimp list, add them to your CRM, or send them an extra welcome email.

The following function demonstrates how to make a basic 3rd party API call with the new user’s data.