Out-of-date plugins and themes are the most common way WordPress websites get hacked. Updating takes a few minutes and is the most important maintenance you can do.
Update from WordPress
- Make a backup first (How do I back up my website in cPanel?).
- Log in to WordPress at https://yourdomain.co.za/wp-admin.
- Go to Dashboard > Updates.
- Update WordPress itself, then plugins, then themes.
- Open your website and check the main pages and your contact form still work.
Switch on automatic updates
- In WordPress, under Plugins, click Enable auto-updates next to each plugin you trust.
- Or in cPanel, open WordPress Manager by Softaculous, choose your site and switch on automatic updates for WordPress, plugins and themes. Softaculous can make a backup before each update.
Clean up
- Delete plugins and themes you don't use. Even switched-off plugins can be hacked. Keep one default WordPress theme as a spare.
- Only install plugins and themes from wordpress.org or the developer's own site. "Free" copies of paid plugins often contain malware.
- Under Users, remove people who no longer need access.
If an update breaks your site
Restore the backup you made (How do I restore a backup in cPanel?), or open a ticket (How do I contact support or open a ticket?). If you can't log in to WordPress, renaming the plugin's folder in public_html/wp-content/plugins with File Manager switches it off.