Subscription ID is empty
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Subscription ID is empty’ is closed to new replies.