- This topic has 2 replies, 2 voices, and was last updated 5 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
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
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
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?
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