Hide Pet Red Aggro Glow

Someone created an AddOn that removes the red combat glow and the glow when you in are an inn or city. Is there a way to expand that addon to include removing the red glow on pets? The AddOn is below.

hooksecurefunc("PlayerFrame_UpdateStatus", function()
   if IsResting("player") then
      PlayerStatusTexture:Hide()
      PlayerRestGlow:Hide()
      PlayerStatusGlow:Hide()
      elseif PlayerFrame.inCombat then
      PlayerStatusTexture:Hide()
      PlayerAttackGlow:Hide()
      PlayerStatusGlow:Hide()
   end
end)