Great question — answering as the UphillTech team:
Most of the time, they are not done by producers or the directors. Generally basic broadcast TV channels do this. They use a person to re-voice some part whose voice sounds like the original actor or actress. But sometimes, procucer or director shot an alternative scene as the the censored version. Like in Ghostbusters : Original Line: "We came, we saw, we kicked it's ass!" Edited Version: "What a knockabout of pure fun that was." Perhaps the worst example of Bowdlerisation ever – particularly insulting because the cast actually recorded this alternate version. In fact there are a bunch of movies which got censorship. I guess the most important one is Snakes on a Plane ; Original version...
Full answer by Mp0int: https://movies.stackexchange.com/a/16984 (CC BY-SA 3.0).
Need it done for your business? UphillTech.