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