optionsframework_init

The SKT Black optionsframework init function.

Description

optionsframework_init(); 

Usage

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

Defined (1)

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

/inc/options-framework.php  
  1. function optionsframework_init() { 
  2.  
  3. // If user can't edit theme options, exit 
  4. if ( ! current_user_can( 'edit_theme_options' ) ) { 
  5. return; 
  6.  
  7. // Include the required files 
  8. require plugin_dir_path( __FILE__ ) . 'includes/class-options-framework.php'; 
  9. require plugin_dir_path( __FILE__ ) . 'includes/class-options-framework-admin.php'; 
  10. require plugin_dir_path( __FILE__ ) . 'includes/class-options-interface.php'; 
  11. require plugin_dir_path( __FILE__ ) . 'includes/class-options-media-uploader.php'; 
  12. require plugin_dir_path( __FILE__ ) . 'includes/class-options-sanitize.php'; 
  13.  
  14. // Instantiate the options page. 
  15. $options_framework_admin = new Options_Framework_Admin; 
  16. $options_framework_admin->init(); 
  17.  
  18. // Instantiate the media uploader class 
  19. $options_framework_media_uploader = new Options_Framework_Media_Uploader; 
  20. $options_framework_media_uploader->init(); 
  21.