Whooping cough vaccine

Nat
What are your thoughts about getting the whooping cough vaccine in your third trimester. ? Is it safer to get it while still pregnant or after and you pass the immunity through Breast milk? I have been reading up on it and still have to talk to my dr. I just want to do what's safest for baby