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 |
---|---|
101 | */ |
102 | add_theme_support( 'post-formats', array( |
103 | 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' |
104 | ) ); |
105 |
|
106 | $color_scheme = twentyfifteen_get_color_scheme(); |
107 | $default_color = trim( $color_scheme[0], '#' ); |
108 |
|
109 | // Setup the WordPress core custom background feature. |
110 | add_theme_support( 'custom-background', apply_filters( 'twentyfifteen_custom_background_args', array( |
111 | 'default-color' => $default_color, |
112 | 'default-attachment' => 'fixed', |
113 | ) ) ); |
114 |
|
115 | /* |
116 | * This theme styles the visual editor to resemble the theme style, |
117 | * specifically font, colors, icons, and column width. |
118 | */ |
119 | add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) ); |