Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentyseventeen_custom_header_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
29            *     @type string $default-image    Default image of the header.
30            *     @type int    $width            Width in pixels of the custom header image. Default 954.
31            *     @type int    $height           Height in pixels of the custom header image. Default 1300.
32            *     @type string $flex-height      Flex support for height of header.
33            *     @type string $video            Video support for header.
34            *     @type string $wp-head-callback Callback function used to styles the header image and text
35            *                                    displayed on the blog.
36            * }
37            */
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                )