Created
June 23, 2019 11:37
-
-
Save pije76/506aaff75a0604843ac7a15ba3ddf3ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'mycred_affiliatewp_payout', 'mycredpro_adjust_affiliatewp_payout', 10, 3 ); | |
function mycredpro_adjust_affiliatewp_payout( $amount, $referral, $new_status ) { | |
$ten_procent = $referral->amount / 10; | |
return $ten_procent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment