- This topic has 1 reply, 2 voices, and was last updated 8 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 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 Tweaks › Create an Expired Hook in eMember
Tagged: action hooks, hooks, Tweaks, WP eMember
Hello,
Thanks for your plugins, they are awesome !
I have a question, I want to hook the expiration of a member (Example : A member has a subscription on our website (With Paypal), when he cancel (On Paypal) and the member is set in “Expired” I want to execute a function to change the member’s status on different services
I tried
add_action(’emember_membership_expired’,’my_function’);
but it doesnt work when i test – (I do my test changing manually the member in the admin panel)
Can you help me ?
Thanks !
Use the following hook which is triggered when a subscription is cancelled:
emember_membership_cancelled
Example code below:
add_action('emember_membership_cancelled','my_function');
function emember_membership_cancelled($data){
$member_id = $data['member_id'];
//Do something for this member profile
}