WordPress at a glance
function is not described

upgrade_230_options_table() WP 2.3.0

Remove old options from the database.

  • Global. wpdb. $wpdb WordPress database abstraction object.

No Hooks.

Return

Nothing (null).

Usage

upgrade_230_options_table();

Code of upgrade 230 options table: wp-admin/includes/upgrade.php WP 5.2.2

<?php
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();
}