Is it possible with BuddyPress Auto Friendship Pro to make my list based on my AffiliateWP referrers?
I use a BuddyBoss community that is only accessible if you are referred with an AffiliateWP referrer.
Hi Renaat,
Welcome to BuddyDev.Out of the box, this is not available in the Auto Friendship pro plugin.
How is the affiliate marked for a user in affiliate WP for a newly registered user? If you can link us to any document and provide access to the affiliateWP plugin, Our team can assist with it.
Regards
BrajeshThank you, looking forward to the reply.
The lifetime referrer is stored in the user’s WordPress profile.Hello Renatt,
Kindly see screenshot for the plugin settings
https://ibb.co/cCJJZhG
https://ibb.co/grLq1Rz
https://ibb.co/58q7cSq
https://ibb.co/cxqP8Y5If the plugin meets your requirements you can message me at mediapress.development[at]gmail.com
I hope to achieve this as simple as possible. I am not building my own affiliate network. But, yes, it is a plugin to integrate AffiliateWP. I tested the plugin before, and I am looking for other options. And BuddyDev seems to have a responsive support. Thanks for the suggestion. BTW are you connected with BuddyDev?
Hello Renatt,
Try the following code. It will make the user to auto-follow referer user when the referral status changes to complete.
add_action( 'affwp_complete_referral', function ( $referral_id ) { if ( ! function_exists( 'affwp_get_referral_by' ) || ! function_exists( 'bp_is_following' ) ) { return; } //$customer_id = bp_loggedin_user_id(); $referral = affwp_get_referral( $referral_id ); // Should we also need to check the status of referral. if ( ! $referral || ! $referral->affiliate_id || ! $referral->customer_id ) { return; } $affiliate_user_id = affwp_get_affiliate_user_id( $referral->affiliate_id ); $customer = affwp_get_customer( $referral->customer_id ); if ( ! $customer ) { return; } $args = array( 'leader_id' => $affiliate_user_id, 'follower_id' => $customer->user_id, ); if ( ! bp_is_following( $args ) ) { bp_start_following( $args ); } }, 100 );
Regards
Ravi
The topic ‘ [Resolved] How can I follow my affiliateWP referrer?’ is closed to new replies.