WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
14 | $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) ); |
15 |
|
16 | /** |
17 | * Filter Twenty Seventeen default saturation level. |
18 | * |
19 | * @since Twenty Seventeen 1.0 |
20 | * |
21 | * @param int $saturation Color saturation level. |
22 | */ |
23 | $saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) ); |
24 | $reduced_saturation = ( .8 * $saturation ) . '%'; |
25 | $saturation = $saturation . '%'; |
26 | $css = ' |
27 | /** |
28 | * Twenty Seventeen: Color Patterns |
29 | * |
30 | * Colors are ordered from dark to light. |
31 | */ |
32 |
|