Skip to content

Instantly share code, notes, and snippets.

@ramiabraham
Created February 26, 2015 14:03
Show Gist options
  • Select an option

  • Save ramiabraham/0ec0df2e67ed31331cc5 to your computer and use it in GitHub Desktop.

Select an option

Save ramiabraham/0ec0df2e67ed31331cc5 to your computer and use it in GitHub Desktop.
AffiliateWP - force pending / accepted referrals
<?php
// set as pending by default
// add_filter( 'affwp_auto_complete_referral', '__return_false' );
// set as accepted by default
add_filter( 'affwp_auto_complete_referral', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment