apply_filters( 'twentyfifteen_color_schemes', array $schemes )
- Since
- Twenty Fifteen 1.0
Filters the color schemes registered for use with Twenty Fifteen.
Description
The default schemes include 'default', 'dark', 'yellow', 'pink', 'purple', and 'blue'.
Compatibility
- WordPress
- since Twenty Fifteen 1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$schemesarray- { Associative array of color schemes data.
@type array $slug { Associative array of information for setting up the color scheme.
@type string $label Color scheme label.
@type array $colors HEX codes for default colors prepended with a hash symbol ('#').
Colors are defined in the following order: Main background, sidebar background, box background, main text and link, sidebar text and link, meta box background.
} }$slugarrayAssociative array of information for setting up the color scheme.$labelstringColor scheme label.$colorsarrayHEX codes for default colors prepended with a hash symbol ('#'). Colors are defined in the following order: Main background, sidebar background, box background, main text and link, sidebar text and link, meta box background.
Where this hook fires · 1
wp-content/themes/twentyfifteen/inc/customizer.php:180twentyfifteen_get_color_schemes()
Source code
* Colors are defined in the following order: Main background, sidebar * background, box background, main text and link, sidebar text and link, * meta box background. * } * } */ return apply_filters( 'twentyfifteen_color_schemes', array( 'default' => array( 'label' => __( 'Default', 'twentyfifteen' ), 'colors' => array( '#f1f1f1',Changelog
Introduced in Twenty Fifteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.