apply_filters( 'twentysixteen_color_schemes', array $schemes )
- Since
- Twenty Sixteen 1.0
Filters the color schemes registered for use with Twenty Sixteen.
Description
The default schemes include 'default', 'dark', 'gray', 'red', and 'yellow'.
Compatibility
- WordPress
- since Twenty Sixteen 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, page background, link, main text, secondary text.
} }$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, page background, link, main text, secondary text.
Where this hook fires · 1
wp-content/themes/twentysixteen/inc/customizer.php:313twentysixteen_get_color_schemes()
Source code
* @type array $colors HEX codes for default colors prepended with a hash symbol ('#'). * Colors are defined in the following order: Main background, page * background, link, main text, secondary text. * } * } */ return apply_filters( 'twentysixteen_color_schemes', array( 'default' => array( 'label' => __( 'Default', 'twentysixteen' ), 'colors' => array( '#1a1a1a',Changelog
Introduced in Twenty Sixteen 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.