onetone_of_get_options

The Onetone onetone of get options function.

Description

onetone_of_get_options( (constant) $default = false ); 

Parameters (1)

0. $default — Optional. (constant) => false
The default.

Usage

  1. if ( !function_exists( 'onetone_of_get_options' ) ) { 
  2. require_once '/includes/theme-setup.php'; 
  3.  
  4. // The default. 
  5. $default = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = onetone_of_get_options($default); 
  9.  

Defined (1)

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

/includes/theme-setup.php  
  1. function onetone_of_get_options($default = false) { 
  2.  
  3. global $onetone_options_saved, $onetone_default_options; 
  4.  
  5. $option_name = optionsframework_option_name(); 
  6.  
  7. if ( get_option($option_name) ) { 
  8. $options = get_option($option_name); 
  9. else{ 
  10.  
  11. $options = $onetone_default_options; 
  12.  
  13.  
  14. if ( isset($options) ) { 
  15. return $options; 
  16. } else { 
  17. return $default; 
  18.