• I am quite new with wordpress and i would need to retrieve specific membership details for users to be used in my application.

    Here are the details that i would need

    1)User ID( wp_users)
    2)Hash password(wp_users)
    3)Membership details for users based on ID(in what table can i find this)

    I need to know what membership each users has and its corresponding status

    https://www.ads-software.com/plugins/membership/

Viewing 1 replies (of 1 total)
  • Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey there khav,

    How are you doing today?

    I’ve talked to our plugin developer for this and he told me that you should be able to get that info with the following. Since I’m not sure are you looking to get that based on membership ID or user ID.

    To get a membership you can use this code:

    $membership = MS_Plugin::$api->get_membership( $id )

    In the next plugin release you can then do

    $membership->get_members()

    to get a list of all members for that membership.

    To get memberships of a user:

    $member = MS_Plugin::$api->get_current_member() // or ->get_member( $user_id )

    You should be able to find more information in developer documentation which you can find in Membership 2 -> Help -> API docs https://screencast.com/t/0gwPxaqHEtMD,

    Hope this helps ??

    Cheers,
    Bojan

Viewing 1 replies (of 1 total)
  • The topic ‘In what tables are the membership details stored’ is closed to new replies.