my_producs_id_for_sponsor_a_friend

my_producs_id_for_sponsor_a_friend is a filter you can use to restrict the coupon usage to specific products only. It will be applied to both sponsor and reward coupons.

Usage (code needs to be added to your functions.php file in your theme folder).

	add_filter('wsafp_coupon_product_ids_filter','my_producs_id_for_sponsor_a_friend');

	function my_producs_id_for_sponsor_a_friend(){


	      //value to replace with product ID's 

	     $product_id = '1,2';

	     return $product_id;


	}