Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eMember – using API to remove a membership level

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › eMember – using API to remove a membership level

Tagged: api, more_membership_levels, WP eMember, wp membership

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 6 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 3, 2016 at 5:29 pm #13808
    Frank
    Member

    Good day, I’ve poked through most of the documentation but cannot find a solution for a particular problem. We need the ability, through the api, to remove a membership level from a user. If there are no other levels to the user, then have it just deactivate the account.

    From what I can see, I can add a membership level, or a user and I can de-activate a user. But no way to de-activate a level for user.

    November 4, 2016 at 12:07 am #74536
    admin
    Keymaster

    The update API allows you to update the membership level and account status of a member:

    https://www.tipsandtricks-hq.com/wordpress-membership/api-updating-a-member-account-using-http-get-or-post-933

    For example, you can pass the level ID using the following query parameter to update the membership level:

    membership_level_id

    If you are using the multiple membership levels per user feature then you can also pass the additional/secondary levels using the following parameter:

    more_membership_levels

    Updating the membership level has the same effect as removing the old level(s) and applying the new level(s).

    The API does a particular thing only. If you need to apply your own logic then you need to do that in your own custom code.

    So for example you can first query a member’s record and inspect its membership level:

    https://www.tipsandtricks-hq.com/wordpress-membership/api-querying-a-member-profile-using-http-get-or-post-1378

    Then call the update API accordingly to update the level or change the account status to “inactive”

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ