• Maha Dev

    (@mahadevnextgei)


    Hi,
    I am facing problem in getting user plan id by using the hook cb_get_user_plan. Getting empty array for this piece of code:

    $current_user = wp_get_current_user();
    $cb_current_plan = apply_filters(“cb_get_user_plan”, $current_user->ID);

    Getting current_user id but not getting the plan id.

Viewing 1 replies (of 1 total)
  • Plugin Author ChargeBee

    (@chargebee)

    Hi,

    Are you able to see the subscription in Chargebee web console with the same user id?

    If the subscription is found, can you do resend webhook of the last event of that subscription using the WordPress webhook url? And then can you try accessing the user plan?

Viewing 1 replies (of 1 total)
  • The topic ‘Not getting user current plan. cb_get_user_plan not working’ is closed to new replies.