upgrade_230_options_table

Definition:
function upgrade_230_options_table() {}

Remove old options from the database.

Source code

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();

}

3235

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: