A WordPress-centric search engine for devs and theme authors



upgrade_230_options_table ›

Since2.3.0
Deprecatedn/a
upgrade_230_options_table ( No parameters )
Defined at:
Codex:

Remove old options from the database.



Source

function upgrade_230_options_table() {
	global $wpdb;
	$old_options_fields = array( 'option_can_override', 'option_type', 'option_width', 'option_height', 'option_description', 'option_admin_level' );
	$wpdb->hide_errors();
	foreach ( $old_options_fields as $old ) {
		$wpdb->query( "ALTER TABLE $wpdb->options DROP $old" );
	}
	$wpdb->show_errors();
}