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 |
---|---|
81 | * 4. Main Text and Link Color. |
82 | * 5. Sidebar Text and Link Color. |
83 | * 6. Meta Box Background Color. |
84 | * |
85 | * @since Twenty Fifteen 1.0 |
86 | * |
87 | * @return array An associative array of color scheme options. |
88 | */ |
89 | function twentyfifteen_get_color_schemes() { |
90 | return apply_filters( 'twentyfifteen_color_schemes', array( |
91 | 'default' => array( |
92 | 'label' => __( 'Default', 'twentyfifteen' ), |
93 | 'colors' => array( |
94 | '#f1f1f1', |
95 | '#ffffff', |
96 | '#ffffff', |
97 | '#333333', |
98 | '#333333', |
99 | '#f7f7f7', |