eewee_register_settings

The Eewee responsive design eewee register settings function.

Description

eewee_register_settings(); 

Usage

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

Defined (1)

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

/includes/admin/theme-admin.php  
  1. function eewee_register_settings() { 
  2.  
  3. // Choose Setting Tab 
  4. if ( isset ( $_GET['tab'] ) ) : 
  5. $tab = $_GET['tab']; 
  6. else: 
  7. $tab = 'general'; 
  8. endif; 
  9.  
  10. $eewee_sections = eewee_get_sections($tab);  
  11. $eewee_settings = eewee_get_settings($tab); 
  12.  
  13. register_setting( 'eewee_options', 'eewee_options', 'eewee_options_validate' ); 
  14.  
  15. // Create Setting Sections 
  16. foreach ($eewee_sections as $section) { 
  17. add_settings_section($section['id'], $section['name'], 'eewee_section_text', 'themeeewee'); 
  18.  
  19. // Create Setting Fields 
  20. foreach ($eewee_settings as $setting) { 
  21. add_settings_field($setting['id'], $setting['name'], 'eewee_display_setting', 'themeeewee', $setting['section'], $setting);