billogram_uninstall

Drops tables for WooCommerce Billogram.

Description

billogram_uninstall(); 

Usage

  1. if ( !function_exists( 'billogram_uninstall' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-billogram-integration/woocommerce-billogram2-extended.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = billogram_uninstall(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/woocommerce-billogram2-extended.php  
  1. function billogram_uninstall() { 
  2. global $wpdb; 
  3. $wcb_orders = 'wcb_orders'; 
  4. $wcb_customers = 'wcb_customers'; 
  5. $wcb_products = 'wcb_products'; 
  6. $wpdb->query ("DROP TABLE ".$wcb_orders.";"); 
  7. $wpdb->query ("DROP TABLE ".$wcb_customers.";");  
  8. $wpdb->query ("DROP TABLE ".$wcb_products.";");  
  9. delete_option('billogram-tour');  
  10. delete_option('billogram_version'); 
  11. delete_option('woocommerce_billogram_general_settings');  
  12. delete_option('local_key_billogram_plugin'); 
  13. delete_option('woocommerce_billogram_order_settings');  
  14. return true;