Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 12, 20231 yr 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?
July 12, 20231 yr 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()
July 12, 20231 yr You can also create an app and add a MemberSync extension and add your stuff in onProfileUpdate method.