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

Create an Expired Hook in eMember

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

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 7 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 25, 2016 at 10:35 am #13785
    arota
    Member

    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 !

    October 26, 2016 at 12:27 am #74458
    admin
    Keymaster

    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
    }

  • 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