twentyeleven_option_page_capability

Change the capability required to save the 'twentyeleven_options' options group.

Description

(string) twentyeleven_option_page_capability( (string) $capability ); 

Returns (string)

The capability to actually use.

Parameters (1)

0. $capability (string)
The capability used for the page, which is manage_options by default.

Usage

  1. if ( !function_exists( 'twentyeleven_option_page_capability' ) ) { 
  2. require_once '/inc/theme-options.php'; 
  3.  
  4. // The capability used for the page, which is manage_options by default. 
  5. $capability = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twentyeleven_option_page_capability($capability); 
  9.  

Defined (1)

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

/inc/theme-options.php  
  1. function twentyeleven_option_page_capability( $capability ) { 
  2. return 'edit_theme_options';