Jump to content

Hook Member Changing Groups


Recommended Posts

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?

Link to comment
Share on other sites

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()

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...