• Resolved valousal

    (@valentinanamorphik)


    Hi,

    On the ‘ppress_added_plan_role_to_customer‘ hook,
    $subscription->id is empty and $subscription->exists() return false.

    Only if we add a payment from the administration.

    add_action('ppress_added_plan_role_to_customer', 'add_plan_role_to_customer', 10, 1);
    
    function add_plan_role_to_customer($subscription)
    {
    $subscription->exists(); // return false;
    $subscription->id; // return 0;
    }

    Why?

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

    (@collizo4sky)

    Make the above change in wp-user-avatar/src/Membership/Models/Subscription/SubscriptionEntity.php file and let me know if that fixes the issue.

    Thread Starter valousal

    (@valentinanamorphik)

    it’s OK !

    An update will be published?

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    Yes, but I can’t tell you when for now.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Subscription ID is empty’ is closed to new replies.