upgrade_230_options_table

Remove old options from the database.

Description

upgrade_230_options_table(); 

Usage

  1. if ( !function_exists( 'upgrade_230_options_table' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = upgrade_230_options_table(); 
  7.  

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function upgrade_230_options_table() { 
  2. global $wpdb; 
  3. $old_options_fields = array( 'option_can_override', 'option_type', 'option_width', 'option_height', 'option_description', 'option_admin_level' ); 
  4. $wpdb->hide_errors(); 
  5. foreach ( $old_options_fields as $old ) 
  6. $wpdb->query("ALTER TABLE $wpdb->options DROP $old"); 
  7. $wpdb->show_errors();