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

How to trigger a custom process when a user is moved of Membership level

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › How to trigger a custom process when a user is moved of Membership level

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 11 months ago by arincon.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 28, 2019 at 1:49 pm #15438
    arincon
    Member

    Hi,

    I was thinking to create a trigger into YOUR master table that keeps the Current level of a member. I am guessing if you have this procedure in place when a user is moved or changed of a membership level to another or if I have to write this implementation by myself. If so, then I need to know if I have to recompile my trigger each time you release a new version of eMember plugin.

    Thanks

    Alex

    May 29, 2019 at 6:04 am #79573
    admin
    Keymaster

    We have an action hook that gets triggered when a member’s membership level gets changed.

    The name of the action hook is: emember_membership_changed

    Below is an example of how to use this action hook:

    add_action(’emember_membership_changed’,’my_custom_tasks_for_level_change’);

    function my_custom_tasks_for_level_change($args){

    $member_id = $args;

    $old_level = $args;

    $new_level = $args;

    //TOOD – do something here

    }

    Are you a developer who is a little bit familiar with WordPress plugin development?

    May 29, 2019 at 4:49 pm #79574
    arincon
    Member

    Hi, I am a developer expert in Oracle and also in .NET technologies… Learning the PHP model and Mysql. For that reason, I tried to solve my problem with a trigger but You gave me another alternative solution.

    Thanks

    Alex

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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