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 |
---|---|
112 | 'height' => 248, |
113 | 'width' => 248, |
114 | 'flex-height' => true, |
115 | ) ); |
116 |
|
117 | $color_scheme = twentyfifteen_get_color_scheme(); |
118 | $default_color = trim( $color_scheme[0], '#' ); |
119 |
|
120 | // Setup the WordPress core custom background feature. |
121 | add_theme_support( 'custom-background', apply_filters( 'twentyfifteen_custom_background_args', array( |
122 | 'default-color' => $default_color, |
123 | 'default-attachment' => 'fixed', |
124 | ) ) ); |
125 |
|
126 | /* |
127 | * This theme styles the visual editor to resemble the theme style, |
128 | * specifically font, colors, icons, and column width. |
129 | */ |
130 | add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) ); |