This action runs when a user leaves a group.
do_action('pg_user_leave_group',$uid,$gid);
Simple example
function ProfileGrid_leave_group($user_id,$gid) { //do something with the user id and group id when someone leaves the group. } add_action( 'pg_user_leave_group', 'ProfileGrid_leave_group' );