How to Add Custom Fields to the Leaky Paywall Registration Form
Using a couple of actions, you can add your own custom form fields to the Leaky Paywall registration form when a new subscriber signs up for a level. This code goes in the functions.php file of your theme or in a custom functionality plugin.
You can also use custom fields to add a Captcha to the registration form.
1. You must set up a page for registration and configure that page in the Leaky Paywall > Settings > General tab.
2. If using Paypal as your payment gateway, you must set the “Paypal Button Location” setting to use paypal on the registration form. This can be found under Leaky Paywall > Settings > Payments.
3. The following code will add a "Company" field and "Newsletter Signup" checkbox to the Leaky Paywall registration form. It includes functionality for adding fields to the registration form, saving those fields as user meta, displaying the values on their WP admin user profile page, and outputting the data in the csv file generated by the free Leaky Paywall Reporting Tool. Please change the fields as needed for your use case. These are only examples.