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

15 linhas
618 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_reseller_settings', 'interweb_ao_reseller_api_key', 'interweb_ao_reseller_api_key_hint', 'interweb_ao_reseller_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_reseller_') . '%',
$wpdb->esc_like('_transient_timeout_interweb_ao_reseller_') . '%'
));