Make WordPress Core

Changeset 34791


Ignore:
Timestamp:
10/03/2015 01:09:20 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Twenty Fifteen: Document the 'twentyfifteen_color_schemes' filter.

Props DrewAPicture.
Fixes #34119.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php

    r31001 r34791  
    8888 */
    8989function twentyfifteen_get_color_schemes() {
     90    /**
     91     * Filter the color schemes registered for use with Twenty Fifteen.
     92     *
     93     * The default schemes include 'default', 'dark', 'yellow', 'pink', 'purple', and 'blue'.
     94     *
     95     * @since Twenty Fifteen 1.0
     96     *
     97     * @param array $schemes {
     98     *     Associative array of color schemes data.
     99     *
     100     *     @type array $slug {
     101     *         Associative array of information for setting up the color scheme.
     102     *
     103     *         @type string $label  Color scheme label.
     104     *         @type array  $colors HEX codes for default colors prepended with a hash symbol ('#').
     105     *                              Colors are defined in the following order: Main background, sidebar
     106     *                              background, box background, main text and link, sidebar text and link,
     107     *                              meta box background.
     108     *     }
     109     * }
     110     */
    90111    return apply_filters( 'twentyfifteen_color_schemes', array(
    91112        'default' => array(
Note: See TracChangeset for help on using the changeset viewer.