install_data

The Google Map Tab install data function.

Description

install_data(); 

Usage

  1. if ( !function_exists( 'install_data' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-map-tab/inc/db-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = install_data(); 
  7.  

Defined (1)

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

/inc/db-settings.php  
  1. function install_data() { 
  2. global $wpdb; 
  3. $welcome_name = "Mr. WordPress"; 
  4. $welcome_text = "Congratulations, you just completed the installation!"; 
  5. $table_name = $wpdb->prefix . "gmt_tab"; 
  6. $rows_affected = $wpdb->insert( $table_name, array( 'time' => current_time('mysql'), 'name' => $welcome_name, 'text' =>  
  7. $welcome_text ) );