This is how you attach a function to OnShow for GameTooltip now:
Code:
TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item, function)
This works for items, for spells you would need to duplicate it and change it to Enum.TooltipDataType.Spell.