twentyfifteen_get_color_scheme_choices

Returns an array of color scheme choices registered for Twenty Fifteen.

Description

(array) twentyfifteen_get_color_scheme_choices(); 

Returns (array)

Array of color schemes.


Usage

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

Defined (1)

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

/inc/customizer.php  
  1. function twentyfifteen_get_color_scheme_choices() { 
  2. $color_schemes = twentyfifteen_get_color_schemes(); 
  3. $color_scheme_control_options = array(); 
  4.  
  5. foreach ( $color_schemes as $color_scheme => $value ) { 
  6. $color_scheme_control_options[ $color_scheme ] = $value['label']; 
  7.  
  8. return $color_scheme_control_options;