Only spells and abilities that target cards in graveyards will be affected. Spells and abilities that affect cards in graveyards without targeting them (such as Extract from Darkness) can still affect those cards.