Below are the basic steps that can be taken when your WordPress website is hacked
- Install security plugins like WP security
- Re-install the latest version of WordPress
- Change password and user-ids for all your users
- Check if all your themes and plug-ins are up-to-date
- Uninstall all plugins that are downloaded from untrusted places