A vehicles oil filter should last as long as the engine oil in the car before it needs changed.
So that would mean that the oil filter should last between 3,000 to 6,000 miles just like the engine oil.
It's recommended that you change your vehicles engine oil every 3,000 to 6,000 miles and you should also change the oil filter along with the engine oil.
Oil filters are cheap enough to replace them along with the oil and so you should always replace the oil filter whenever you replace your vehicles engine oil.
I always replace my engines oil filter and engine oil together after 3,000 miles to protect my engine from contaminates and other engine damage.
The oil and oil filter are cheaper and easier than replacing the engine in the vehicle.