[ad_1]
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?
