inkthemes_get_option

The ColorWay inkthemes get option function.

Description

inkthemes_get_option( (string) $name, (string) $default = '' ); 

Parameters (2)

0. $name (string)
The name.
1. $default — Optional. (string) => ''
The default.

Usage

  1. if ( !function_exists( 'inkthemes_get_option' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The name. 
  5. $name = ''; 
  6.  
  7. // The default. 
  8. $default = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = inkthemes_get_option($name, $default); 
  12.  

Defined (1)

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

/functions.php  
  1. function inkthemes_get_option($name, $default = '') { 
  2. // echo $default; 
  3. $options = get_option('inkthemes_options'); 
  4. if (isset($options[$name]) && $options[$name] != '') { 
  5. return $options[$name]; 
  6. } elseif ($default) { 
  7. if (inkthemes_get_option('colorway_dummy_data') == 'on') { 
  8. return $default; 
  9. } else { 
  10. return false;