Change User Role During Registration
Sometimes you might want to change some of the userdata used to create the WordPress user during subscriber registration. Using the leaky_paywall_userdata_before_user_create filter, you can control what data is passed to the wp_insert_user function.
For example, if you wanted to use a different role for the user (Leaky Paywall uses "subscriber" by default), this code snippet shows how to do that.