Title: Lost custom posts and plugin settings
Last modified: January 8, 2026

---

# Lost custom posts and plugin settings

 *  Resolved [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/lost-custom-posts-and-plugin-settings/)
 * Hi Devin,
 * My plugin uses [a default file](https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/#method-2-uninstall-php)
   called `uninstall.php` that is used to remove settings from the DB when uninstalling
   plugin.
 * As many other plugins, mine also have a setting to disable that. But if user 
   forgets to set this, and uses the WP Rollback plugin, all custom posts and/or
   settings are lost.
 * Is there a way you can change the WP Rollback plugin so it does NOT uninstall
   the plugin the default way?
 * Something else: 
   After rollback the link to return to the plugins screen doesn’t
   redirect properly when site is in a sub folder. In my case in `http://localhost/
   wordpress/`. It redirects to `http://localhost/wp-admin/plugins.php`.
 * Guido

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/lost-custom-posts-and-plugin-settings/#post-18836287)
 * Hi [@guido07111975](https://wordpress.org/support/users/guido07111975/), this
   is fixed in the latest version. Thanks for bringing this to my attention.
 *  Thread Starter [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/lost-custom-posts-and-plugin-settings/#post-18836308)
 * Hi Devin,
 * Great! And I hereby confirm rollback and going back to current plugin version
   did not delete my events and plugin settings!
 * Minor thing, the link to return to the plugins screen is not fixed yet (see my
   first post).
 * Thanks!
 * Guido
 *  Plugin Author [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [1 month ago](https://wordpress.org/support/topic/lost-custom-posts-and-plugin-settings/#post-18857310)
 * Hey [@guido07111975](https://wordpress.org/support/users/guido07111975/) – I 
   fixed the link to return to the plugins screen in this latest update.
 *  Thread Starter [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [1 month ago](https://wordpress.org/support/topic/lost-custom-posts-and-plugin-settings/#post-18857561)
 * Hi Devin,
 * Great, I hereby confirm this is now also fixed. Thanks.
 * Guido

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flost-custom-posts-and-plugin-settings%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-rollback/assets/icon-256x256.jpg?rev=3014868)
 * [WP Rollback - Rollback Plugins and Themes](https://wordpress.org/plugins/wp-rollback/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rollback/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rollback/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rollback/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rollback/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rollback/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Guido](https://wordpress.org/support/users/guido07111975/)
 * Last activity: [1 month ago](https://wordpress.org/support/topic/lost-custom-posts-and-plugin-settings/#post-18857561)
 * Status: resolved