How do I repair a hacked WordPress site?

Sad reality for many webmasters is that they are faced with the question of when their website is going to be hacked, rather than if that is going