protected function uninstall() { global $wpdb; // deleting transactions $sql = $wpdb->prepare("DELETE FROM {$wpdb->prefix}gf_addon_payment_transaction\n WHERE lead_id IN\n (SELECT lead_id FROM {$wpdb->prefix}rg_lead_meta WHERE meta_key='payment_gateway' AND meta_value=%s)", $this->_slug); $wpdb->query($sql); // deleting callback log $sql = $wpdb->prepare("DELETE FROM {$wpdb->prefix}gf_addon_payment_callback WHERE addon_slug=%s", $this->_slug); $wpdb->query($sql); //clear cron wp_clear_scheduled_hook($this->_slug . '_cron'); parent::uninstall(); }
protected function uninstall() { global $wpdb; // deleting transactions $sql = $wpdb->prepare("DELETE FROM {$wpdb->prefix}gf_addon_payment_transaction\n WHERE feed_id IN (SELECT id FROM {$wpdb->prefix}gf_addon_feed WHERE addon_slug=%s)", $this->_slug); $wpdb->query($sql); //clear cron wp_clear_scheduled_hook($this->_slug . "_cron"); parent::uninstall(); }
/** * Clear the cached settings on uninstall. * * @return bool */ public function uninstall() { parent::uninstall(); GFCache::delete('mailchimp_plugin_settings'); return true; }
public function uninstall() { require_once $this->get_base_path() . '/includes/wizard/class-installation-wizard.php'; $wizard = new Gravity_Flow_Installation_Wizard(); $wizard->flush_values(); wp_clear_scheduled_hook('gravityflow_cron'); $this->uninstall_db(); parent::uninstall(); }