Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório wordpress-account-plugin, anteriormente
0
wordpress-account-plugin/interweb-ao-account/uninstall.php
2026-12-01 14:09:12 +02:00

15 linhas
612 B
PHP

<?php
// Runs when the plugin is deleted from WordPress: removes its settings, the saved key and its caches.
if (!defined('WP_UNINSTALL_PLUGIN')) {
exit;
}
foreach (array('interweb_ao_account_settings', 'interweb_ao_account_api_key', 'interweb_ao_account_api_key_hint', 'interweb_ao_account_activity_log') as $opt) {
delete_option($opt);
}
global $wpdb;
$wpdb->query($wpdb->prepare(
"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",
$wpdb->esc_like('_transient_interweb_ao_account_') . '%',
$wpdb->esc_like('_transient_timeout_interweb_ao_account_') . '%'
));