Hi,
I have membership plans that define commission rules for each plan–> By vendor sales. (Commission rules are not global)
To modify commission by vendor sales at the global level the following code works:
add_filter( ‘wcfmmp_commission_vendor_gross_sales_duration’, function( $vendor_gross_sales_duration, $vendor_id, $vendor_commission_sales_rules ) {
$vendor_gross_sales_duration = ‘last_month’;
return $vendor_gross_sales_duration;
}, 50, 3 );
However, I need the above code to work at the membership level commission settings.
Can you kindly give me the add_filter code that will work to modify $vendor_gross_sales_duration = ‘last_month’; for membership plans level instead of global level.
Thanks a lot in advance and have a very nice Monday ahead 🙂
Best Regards,
EK