optionsframework_option_name

A unique identifier is defined to store the options in the database and reference them from the theme.

Description

optionsframework_option_name(); 

By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed. If the identifier changes, it'll appear as if the options have been reset.


Usage

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

Defined (1)

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

/options.php  
  1. function optionsframework_option_name() { 
  2. // Change this to use your theme slug 
  3. return 'optionsframework_skt_photo_world';