upgrade_230_old_tables()
Remove old categories, link2cat, and post2cat database tables.
No Hooks.
Returns
null. Nothing (null).
Usage
upgrade_230_old_tables();
Notes
- Global. wpdb.
$wpdbWordPress database abstraction object.
Changelog
| Since 2.3.0 | Introduced. |
upgrade_230_old_tables() upgrade 230 old tables code WP 7.0
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' );
}