• Resolved valousal

    (@valentinanamorphik)


    Hi,

    Sorry, it’s me again… ??

    Evolution request.

    Is it possible to add a action on the “add_plan_role_to_customer” and “remove_plan_role_from_customer” methods of the “ProfilePress\Core\Membership\Models\Subscription\SubscriptionEntity” class?

    // add_plan_role_to_customer()
    do_action('ppress_add_plan_to_customer', $plan, $customer, $user);
    
    // remove_plan_role_from_customer()
    do_action('ppress_remove_plan_from_customer', $plan, $customer, $user)

    THANKS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Collins Agbonghama

    (@collizo4sky)

    Curious, what are you building that requires this many modifications?

    Thread Starter valousal

    (@valentinanamorphik)

    subscription for a calendar year.

    Example: from 01-01-2024 to 31-12-2024

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    We’ve added the following and will be available in next plugin update

    do_action('ppress_added_plan_role_to_customer', $this);

    do_action('ppress_removed_plan_role_from_customer', $this);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Evolution request #7 : Add a action on the method’ is closed to new replies.