WordPress.org

Ready to get started?Download WordPress

Forums

Optionally remove data on plugin uninstall (1 post)

  1. af.
    Member
    Posted 3 years ago #

    I know it is possible to make a plugin remove its data using delete_option in a function hooked onto register_uninstall_hook, and WordPress will detect you are deleting data and warn the user at the time.

    But is there any way to prompt the user whether they want the files and data deleted or just the files deleted and the information kept (in case they might reinstall it again later on) when they go to uninstall it?

Topic Closed

This topic has been closed to new replies.

About this Topic