inkthemes_update_option

The ColorWay inkthemes update option function.

Description

inkthemes_update_option( (string) $name, $value ); 

Parameters (2)

0. $name (string)
The name.
1. $value
The value.

Usage

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

Defined (1)

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

/functions.php  
  1. function inkthemes_update_option($name, $value) { 
  2. $options = get_option('inkthemes_options'); 
  3. $options[$name] = $value; 
  4. return update_option('inkthemes_options', $options);