_optionsframework_options

The SKT Parallaxme optionsframework options function.

Description

&_optionsframework_options(); 

Usage

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

Defined (1)

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

/inc/options-framework.php  
  1. function &_optionsframework_options() { 
  2. static $options = null; 
  3.  
  4. if ( !$options ) { 
  5. // Load options from options.php file (if it exists) 
  6. $location = apply_filters( 'options_framework_location', array('options.php') ); 
  7. if ( $optionsfile = locate_template( $location ) ) { 
  8. $maybe_options = require_once $optionsfile; 
  9. if ( is_array($maybe_options) ) { 
  10. $options = $maybe_options; 
  11. } else if ( function_exists( 'optionsframework_options' ) ) { 
  12. $options = optionsframework_options(); 
  13.  
  14. // Allow setting/manipulating options via filters 
  15. $options = apply_filters('of_options', $options); 
  16.  
  17. return $options;