If a WordPress plugin or theme update causes your site to malfunction, you can roll back to a previous version to restore functionality. This process is available to Site Administrators and requires access to the WordPress dashboard or the underlying file system.
Before you begin
You will need:
Site Administrator access to the WordPress dashboard.
Access to the website's file system (via FTP, SFTP, or a File Manager).
A current backup of your website (recommended before performing manual file replacements).
Roll back a plugin or theme via a management plugin
If you have a management plugin installed (such as WP Rollback), you can revert the version directly from the dashboard.
Log in to your WordPress dashboard.
Navigate to Plugins or Appearance > Themes (depending on what you need to roll back).
Locate the specific plugin or theme.
If your management plugin is active, select the item and click Rollback.
Select the desired previous version from the list.
Click Rollback to confirm.
Roll back a plugin or theme via the file system
If the site is inaccessible via the dashboard, you can roll back the component by replacing the files manually.
Connect to your site's files using an FTP client or a File Manager.
Navigate to the directory for plugins:
/wp-content/plugins/.Locate the folder for the problematic plugin.
Delete the folder or rename it (e.g.,
plugin-name_old) to disable the plugin immediately.Upload the files for the previous, stable version of the plugin into the folder.
If rolling back a theme, navigate to
/wp-content/themes/and repeat the process by replacing the theme folder with the previous version's files.
Warning: Manually deleting or replacing folders can cause site errors if the files are not replaced correctly. Ensure you have a backup before modifying files via FTP.
Confirm the result
The website should load correctly without error messages.
The site's functionality should return to its previous state.
You can verify the version of the plugin or theme in the WordPress dashboard.
If the site remains inaccessible after a rollback
If the site is still down after you have replaced the files, the issue may be caused by a corrupted database entry or a persistent cache.
Clear your cache: If you use a caching plugin or a server-side cache (like LiteSpeed), clear the cache to ensure the old version's data is not being served.
Check for database errors: If the plugin updated the database schema, you may need to manually revert database changes using a tool like phpMyAdmin.
Contact Hostek Support: If you cannot identify the cause of the continued failure, contact Hostek support with the name of the plugin or theme and the specific error message you see.
