twentyeleven_get_default_theme_options

Return the default options for Twenty Eleven.

Description

(array) twentyeleven_get_default_theme_options(); 

Returns (array)

An array of default theme options.


Usage

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

Defined (1)

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

/inc/theme-options.php  
  1. function twentyeleven_get_default_theme_options() { 
  2. $default_theme_options = array( 
  3. 'color_scheme' => 'light',  
  4. 'link_color' => twentyeleven_get_default_link_color( 'light' ),  
  5. 'theme_layout' => 'content-sidebar',  
  6. ); 
  7.  
  8. if ( is_rtl() ) 
  9. $default_theme_options['theme_layout'] = 'sidebar-content'; 
  10.  
  11. /** 
  12. * Filter the Twenty Eleven default options. 
  13. * @since Twenty Eleven 1.0 
  14. * @param array $default_theme_options An array of default theme options. 
  15. */ 
  16. return apply_filters( 'twentyeleven_default_theme_options', $default_theme_options );