I'm working on a manual entry system for Affiliates that will hook into the invite code system of Membership. But I need to know what function to hook into in order to add my code into the process that enables the affiliate. So far, I'm using the following add_action to add my function to that process in affiliateadmin.php:
add_action( 'add_profile_report_page', 'add_affiliate_invite_code' );
The thing is, I don't think that my code is being executed when I enable affiliate links, enter my paypal email, and press submit on the affiliate details page.
I've placed my function on the tail end of the membership addon file.
I'm working with @Paul to add this functionality.
Some help would be great.