optionsframework_rolescheck

The SKT Parallaxme optionsframework rolescheck function.

Description

optionsframework_rolescheck(); 

Usage

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

Defined (1)

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

/inc/options-framework.php  
  1. function optionsframework_rolescheck () { 
  2. if ( current_user_can( 'edit_theme_options' ) ) { 
  3. // If the user can edit theme options, let the fun begin! 
  4. add_action( 'admin_init', 'optionsframework_init' );