Pheromone-induced life-history shifts