Filter needed

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #109366
      EK
      Participant

      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

Viewing 0 reply threads
  • You must be logged in to reply to this topic.