upgrade_230_old_tables

Remove old categories, link2cat, and post2cat database tables.

Description

upgrade_230_old_tables(); 

Usage

  1. if ( !function_exists( 'upgrade_230_old_tables' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = upgrade_230_old_tables(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/upgrade.php  
  1. function upgrade_230_old_tables() { 
  2. global $wpdb; 
  3. $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'categories'); 
  4. $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'link2cat'); 
  5. $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'post2cat');