/** * Remove saved fields and options */ public function remove_plugin_data() { foreach (ML_Product::get_fields() as $field) { delete_post_meta_by_key(ML_Product::ML_PREFIX . $field); } delete_option($this->options_slug); }