WordPress at a glance
function is not described

upgrade_230_old_tables() WP 2.3.0

Remove old categories, link2cat, and post2cat database tables.

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

No Hooks.

Return

Nothing (null).

Usage

upgrade_230_old_tables();

Code of upgrade 230 old tables: wp-admin/includes/upgrade.php WP 5.2.2

<?php
function upgrade_230_old_tables() {
	global $wpdb;
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'categories' );
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'link2cat' );
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'post2cat' );
}