Is there a way I can run a custom function when a membership expires?
I see the expire_memberships() function is called by the events/hourly hook but I don’t see a way to add an action to that.
Hi,
To do this, we recommend using the email hook hivepress/v1/emails/membership_expire/send
, where you can find the membership object in tokens.