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 |
---|---|
29 | * @type int $height Height in pixels of the custom header image. Default 1300. |
30 | * @type string $flex-height Flex support for height of header. |
31 | * @type string $video Video support for header. |
32 | * @type string $wp-head-callback Callback function used to styles the header image and text |
33 | * displayed on the blog. |
34 | * } |
35 | */ |
36 | add_theme_support( |
37 | 'custom-header', |
38 | apply_filters( |
39 | 'twentyseventeen_custom_header_args', |
40 | array( |
41 | 'default-image' => get_parent_theme_file_uri( '/assets/images/header.jpg' ), |
42 | 'width' => 2000, |
43 | 'height' => 1200, |
44 | 'flex-height' => true, |
45 | 'video' => true, |
46 | 'wp-head-callback' => 'twentyseventeen_header_style', |
47 | ) |