install_global_terms

The WordPress Core install global terms function.

Description

install_global_terms(); 

Usage

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

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function install_global_terms() { 
  2. global $wpdb, $charset_collate; 
  3. $ms_queries = " 
  4. CREATE TABLE $wpdb->sitecategories ( 
  5. cat_ID bigint(20) NOT NULL auto_increment,  
  6. cat_name varchar(55) NOT NULL default '',  
  7. category_nicename varchar(200) NOT NULL default '',  
  8. last_updated timestamp NOT NULL,  
  9. PRIMARY KEY (cat_ID),  
  10. KEY category_nicename (category_nicename),  
  11. KEY last_updated (last_updated) 
  12. ) $charset_collate; 
  13. "; 
  14. // now create tables 
  15. dbDelta( $ms_queries );