Your cart is currently empty!
—
by
Hi there, Is it possible to give the affiliates, sign up bonus? [Aff. Pro]
Earnings , : 10 instead of 0
Hi, you can use “affiliates_added_affiliate” hook, for example: add_action( 'affiliates_added_affiliate', 'affiliates_initial_bonus' ); function affiliates_initial_bonus( $aff_id ) { $description = "Initial Bonus"; $amount = 10; $currency_id = "USD"; if ( class_exists( 'Affiliates_Referral_WordPress' ) ) { $r = new Affiliates_Referral_WordPress(); $r->add_referrals( array( $aff_id ), null, $description, null, null, $amount, $currency_id); } else { affiliates_add_referral( $aff_id, null, $description, null, $amount, $currency_id); } } cheers
add_action( 'affiliates_added_affiliate', 'affiliates_initial_bonus' ); function affiliates_initial_bonus( $aff_id ) { $description = "Initial Bonus"; $amount = 10; $currency_id = "USD"; if ( class_exists( 'Affiliates_Referral_WordPress' ) ) { $r = new Affiliates_Referral_WordPress(); $r->add_referrals( array( $aff_id ), null, $description, null, null, $amount, $currency_id); } else { affiliates_add_referral( $aff_id, null, $description, null, $amount, $currency_id); } }
I checked the comments. I meant when people sign up automatically they get 10 dollar for example. Is there a way to do that?
Hi, please take a look to this plugin. cheers
Comments
4 responses to “Sign Up Bonus”
Earnings , : 10 instead of 0
Hi,
you can use “affiliates_added_affiliate” hook, for example:
add_action( 'affiliates_added_affiliate', 'affiliates_initial_bonus' );
function affiliates_initial_bonus( $aff_id ) {
$description = "Initial Bonus";
$amount = 10;
$currency_id = "USD";
if ( class_exists( 'Affiliates_Referral_WordPress' ) ) {
$r = new Affiliates_Referral_WordPress();
$r->add_referrals( array( $aff_id ), null, $description, null, null, $amount, $currency_id);
} else {
affiliates_add_referral( $aff_id, null, $description, null, $amount, $currency_id);
}
}
cheers
I checked the comments. I meant when people sign up automatically they get 10 dollar for example. Is there a way to do that?
Hi,
please take a look to this plugin.
cheers