• Resolved demo2live

    (@demo2live)


    I am not sure if I am missing anything. Basically, I want to integrate this plugin into a custom theme. So I need to call functions/methods like get-all-membersipPlan(), get-memberPaln-by-member-id(), get-memberShip-expiryDate() etc.

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

    (@reputeinfosystems)

    Hello,

    As I understood from your request, you want to use ARMember functions for your custom code in the theme. If that is the case then,

    1. For get all membership plan you need to use arm_get_plans_data() function. with subscription using $arm_subscription_plans global variable.

    2. & 3. For, get member plan by member id, you can get user meta with meta key “arm_user_plan_ids” which will return plan id. If you need user all plan details then you can get details using “arm_user_plan_{PLAN_ID}” using get user meta WordPress function.

    3. To get the membership expiry date, you can get the plan expiration date from the same user meta of the user plan details array using the key “arm_expire_plan” which will return the timestamp.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘functions that returns’ is closed to new replies.