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 |
---|---|
52 | * @type int $width Width in pixels of the custom header image. Default 1200. |
53 | * @type int $height Height in pixels of the custom header image. Default 280. |
54 | * @type bool $flex-height Whether to allow flexible-height header images. Default true. |
55 | * @type callable $wp-head-callback Callback function used to style the header image and text |
56 | * displayed on the blog. |
57 | * } |
58 | */ |
59 | add_theme_support( |
60 | 'custom-header', |
61 | apply_filters( |
62 | 'twentysixteen_custom_header_args', |
63 | array( |
64 | 'default-text-color' => $default_text_color, |
65 | 'width' => 1200, |
66 | 'height' => 280, |
67 | 'flex-height' => true, |
68 | 'wp-head-callback' => 'twentysixteen_header_style', |
69 | ) |
70 | ) |