Jump to content

Recommended Posts

Posted

What is a hook to catch when a Member is changing groups?

 \IPS\Member has set_member_group_id( $value ), but I need to know what group they are changing from and what the new group is. In the "Recent Activity" I have logs like "Expiring purchase "X" changed group from "Y" to"Z"." - I need to hook into this moment. How?

Posted
3 minutes ago, Dominyka said:

What is a hook to catch when a Member is changing groups?

 \IPS\Member has set_member_group_id( $value ), but I need to know what group they are changing from and what the new group is. In the "Recent Activity" I have logs like "Expiring purchase "X" changed group from "Y" to"Z"." - I need to hook into this moment. How?

You need to extent the \IPS\Member hook class. And the function that you need is called: public function save()

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...