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 |
|---|---|
| 125 | * @since Twenty Fifteen 1.0 |
| 126 | * |
| 127 | * @param array $args { |
| 128 | * An array of custom-header support arguments. |
| 129 | * |
| 130 | * @type string $default-color Default color of the header. |
| 131 | * @type string $default-attachment Default attachment of the header. |
| 132 | * } |
| 133 | */ |
| 134 | add_theme_support( 'custom-background', apply_filters( 'twentyfifteen_custom_background_args', array( |
| 135 | 'default-color' => $default_color, |
| 136 | 'default-attachment' => 'fixed', |
| 137 | ) ) ); |
| 138 | |
| 139 | /* |
| 140 | * This theme styles the visual editor to resemble the theme style, |
| 141 | * specifically font, colors, icons, and column width. |
| 142 | */ |
| 143 | add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) ); |