ddw_wcde_delete_options

Delete our option IDs from the database.

Description

ddw_wcde_delete_options(); 

Usage

  1. if ( !function_exists( 'ddw_wcde_delete_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/uninstall.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_wcde_delete_options(); 
  7.  

Defined (1)

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

/uninstall.php  
  1. function ddw_wcde_delete_options() { 
  2.  
  3. $wcde_option_ids = array( 
  4. 'wcde_german_formal',  
  5. 'wcde_loading_location',  
  6. 'wcde_load_extensions',  
  7. 'wcde_load_string_swaps' 
  8. ); 
  9.  
  10. foreach ( $wcde_option_ids as $wcde_option_id ) { 
  11.  
  12. delete_option( $wcde_option_id ); 
  13.  
  14. } // end foreach 
  15.  
  16. } // end of function ddw_wcde_delete_options