• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyfifteen_get_color_scheme_choices() – Returns an array of color scheme choices registered for Twenty Fifteen.

Description

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

Usage

$array = twentyfifteen_get_color_scheme_choices();

Parameters

Returns

array Array of color schemes.

Source

File name: twentyfifteen/inc/customizer.php
Lines:

1 to 10 of 10
  function twentyfifteen_get_color_scheme_choices() {
    $color_schemes                = twentyfifteen_get_color_schemes();
    $color_scheme_control_options = array();

    foreach ( $color_schemes as $color_scheme => $value ) {
      $color_scheme_control_options[ $color_scheme ] = $value['label'];
    }

    return $color_scheme_control_options;
  }
 

 View on Trac

Called by

1 to 2 of 2
  • twentyfifteen_customize_register() – Add postMessage support for site title and description for the Customizer.
  • twentyfifteen_sanitize_color_scheme() – Sanitization callback for color schemes.

Invoked by

    Calls

    1 to 2 of 2
    • twentyfifteen_get_color_scheme_choices() – Returns an array of color scheme choices registered for Twenty Fifteen.
    • twentyfifteen_get_color_schemes() – Register color schemes for Twenty Fifteen.

    Call hooks

    Function name: twentyfifteen_get_color_scheme_choices
    Plugin ref: Twenty Fifteen
    Version: 2.8
    Sourcefile: inc/customizer.php
    File ref: inc/customizer.php
    Deprecated?: No
    API Letters: C,G,S,T

    Published: 19th December 2019 | Last updated: 19th December 2019

    Primary Sidebar

    Information

    Function name: twentyfifteen_get_color_scheme_choices
    Plugin ref: Twenty Fifteen
    Version: 2.8
    Sourcefile: inc/customizer.php
    File ref: inc/customizer.php
    Deprecated?: No
    API Letters: C,G,S,T

    Footer

    WordPress a2z
    WordPress a2z
    WordPress Dynamic API Reference
    WordPress 5.6.2. PHP: 7.3.27
    WordPress a2z
    WordPress core a2z
    Genesis Theme Framework a2z
    Jetpack a2z
    WordPress develop tests
    Easy Digital Downloads a2z
    WooCommerce a2z
    Yoast SEO a2z
    WordPress Blocks

    Site:  wp-a2z.org
    © Copyright WordPress a2z 2014-2021. All rights reserved.


    Website designed and developed by Herb Miller
    Proudly powered by WordPress and oik plugins

    • Home
    • Blog
    • Sitemap
    • Sites