Implement uninstall cleanup of options and transients #5

Closed
opened 2026-07-01 01:04:29 +00:00 by manlycucumber · 1 comment
manlycucumber commented 2026-07-01 01:04:29 +00:00 (Migrated from github.com)

Problem

A clean uninstall must remove all plugin-owned options, transients, and rewrite state so nothing is left in the database when a site administrator removes Ordo.

Acceptance criteria

  • An uninstall.php removes every option key the plugin created.
  • All plugin transients (and their timeout twins) are deleted.
  • Uninstall runs only via the WordPress uninstall hook, guarded against direct access.
  • After uninstall, a database scan shows no rows with the plugin's option prefix.

Notes

Keep the option prefix consistent so cleanup can target it precisely.

## Problem A clean uninstall must remove all plugin-owned options, transients, and rewrite state so nothing is left in the database when a site administrator removes Ordo. ## Acceptance criteria - [ ] An uninstall.php removes every option key the plugin created. - [ ] All plugin transients (and their timeout twins) are deleted. - [ ] Uninstall runs only via the WordPress uninstall hook, guarded against direct access. - [ ] After uninstall, a database scan shows no rows with the plugin's option prefix. ## Notes Keep the option prefix consistent so cleanup can target it precisely.
manlycucumber commented 2026-07-03 18:37:09 +00:00 (Migrated from github.com)

Done in #105. uninstall.php removes every ordo_-prefixed option and transient (and timeout twins), multisite-aware (per-site + network sitemeta), guarded by WP_UNINSTALL_PLUGIN so it runs only via the uninstall hook.

Done in #105. uninstall.php removes every ordo_-prefixed option and transient (and timeout twins), multisite-aware (per-site + network sitemeta), guarded by WP_UNINSTALL_PLUGIN so it runs only via the uninstall hook.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Directorium/Ordo#5
No description provided.