uninstall.php
Uninstall routine for CreaCaptcha.
Runs without the plugin loaded, so every name it touches is repeated here rather than taken from a constant — with the single exception of the replay-marker prefix, whose class file is pulled in below.
Table of Contents
Functions
- creationell_captcha_uninstall_site() : void
- Removes every trace of the plugin from the site that is currently switched to: options, replay markers, transients, cron slots and the event-log table.
- creationell_captcha_uninstall_user_meta() : void
- Removes the plugin's per-user data.
Functions
creationell_captcha_uninstall_site()
Removes every trace of the plugin from the site that is currently switched to: options, replay markers, transients, cron slots and the event-log table.
creationell_captcha_uninstall_site() : void
Reads $wpdb freshly on each call because switch_to_blog() repoints
$wpdb->prefix and $wpdb->options at the other site's tables.
creationell_captcha_uninstall_user_meta()
Removes the plugin's per-user data.
creationell_captcha_uninstall_user_meta() : void
B-M4: the hardening notice introduced in this release remembers per
administrator that it was dismissed. Without this, one wp_usermeta row per
administrator who ever clicked the notice away survives the uninstall — and
the routine above promises to remove "every trace".
Deliberately NOT part of creationell_captcha_uninstall_site(): wp_usermeta
is a network-global table that switch_to_blog() does not repoint, so this
runs exactly once for the whole installation. delete_metadata() with
$delete_all = true ignores the object id and removes the key for every user
in a single statement.