Rollback Manager
Product: Admin Framework Pro
The Rollback Manager module lets you safely revert WordPress.org themes and plugins to earlier versions directly from your admin dashboard. Whether fixing compatibility issues, undoing a problematic update, or testing different releases, this tool helps maintain site stability with just a few clicks.
How to use
To enable the Rollback Manager:
- Click on the “Utilities” category
- Search or scroll to locate the Rollback Manager Module
- Click on the switch to enable
What’s next?
This module allows you to safely rollback any WordPress.org theme or plugin to a previous version.
1. Accessing Rollback Manager
- Navigate to WP mazic > Rollback Manager in your WordPress admin
- Or, click the “Rollback” link in the plugins or themes list
2. Rolling Back a Plugin
- Select “Plugin” from the Type dropdown
- Choose the plugin you want to rollback from the Plugins dropdown
- Select the version you want to roll back to
- Click the “Rollback” button
- Wait for the process to complete
3. Rolling Back a Theme
- Select “Theme” from the Type dropdown
- Choose the theme you want to rollback from the Themes dropdown
- Select the version you want to roll back to
- Click the “Rollback” button
- Wait for the process to complete
4. Quick Rollback from Plugins Page
- Go to Plugins > Installed Plugins
- Find the plugin you want to rollback
- Click the “Rollback” link in the plugin’s action links
- This will take you directly to the Rollback Manager with the plugin pre-selected
5. Quick Rollback from Themes Page
- Go to Appearance > Themes
- Hover over the theme you want to rollback
- Click “Theme Details”
- Click the “Rollback” link in the theme details
- This will take you directly to the Rollback Manager with the theme pre-selected
6. Best Practices
- Backup First: Always backup your site before performing a rollback
- Test After Rollback: Check your site thoroughly after rolling back
- Update Carefully: After a successful rollback, consider waiting for the next stable release before updating again
- Check Compatibility: Ensure the rolled-back version is compatible with your current WordPress version
7. Troubleshooting
- No Versions Available:
- The theme/plugin might not be from WordPress.org
- Check your internet connection
- The theme/plugin might not have any previous versions
- Rollback Fails:
- Check file permissions
- Ensure you have enough server resources
- Check your server’s error logs
- Plugin/Theme Not Working After Rollback:
- Clear your cache
- Deactivate and reactivate the plugin/theme
- Check for conflicts with other plugins
8. Developer Hooks
// Filter available plugins for rollback
add_filter('WPMazic/rollback/available_plugins', function($plugins) {
// Modify $plugins array
return $plugins;
});
// Filter available themes for rollback
add_filter('WPMazic/rollback/available_themes', function($themes) {
// Modify $themes array
return $themes;
});
// Action before rollback
add_action('WPMazic/rollback/before_rollback', function($type, $slug, $version) {
// Your code here
}, 10, 3);
// Action after successful rollback
add_action('WPMazic/rollback/after_rollback', function($type, $slug, $version) {
// Your code here
}, 10, 3);9. Security Considerations
- Only administrators can access the Rollback Manager
- All requests are verified for security
- Only themes and plugins from WordPress.org are supported
- Direct file access is restricted
10. Notes
- The Rollback Manager only works with themes and plugins from WordPress.org
- Custom or premium themes/plugins cannot be rolled back using this tool
- Always test rollbacks on a staging site first when possible
This module is particularly useful for:
- Fixing compatibility issues after updates
- Reverting problematic updates
- Testing different versions of plugins/themes
- Maintaining site stability during development