gbi_default_setup

The WordPress Core gbi default setup function.

Description

gbi_default_setup(); 

Usage

  1. if ( !function_exists( 'gbi_default_setup' ) ) { 
  2. require_once '/index.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gbi_default_setup(); 
  7.  

Defined (1)

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

/index.php  
  1. function gbi_default_setup() {  
  2.  
  3. if(get_option('gbi_fields')) 
  4. return; 
  5.  
  6. // default setup 
  7. $mapped_fields = array(  
  8. 'post_title' => 'title',  
  9. 'post_content' => 'description',  
  10. 'post_excerpt' => 'subtitle',  
  11. 'post_status' => 'publish',  
  12. 'comment_status' => 'open',  
  13. 'post_types' => 'post',  
  14. 'category' => '0',  
  15. 'featured' => '0',  
  16. ); 
  17.  
  18. update_option('gbi_fields', $mapped_fields); 
  19. update_option('gbi_apikey', ''); 
  20.