Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentysixteen_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
44       *
45       *     @type string $default-text-color Default color of the header text.
46       *     @type int      $width            Width in pixels of the custom header image. Default 1200.
47       *     @type int      $height           Height in pixels of the custom header image. Default 280.
48       *     @type bool     $flex-height      Whether to allow flexible-height header images. Default true.
49       *     @type callable $wp-head-callback Callback function used to style the header image and text
50       *                                      displayed on the blog.
51       * }
52       */
53      add_theme_support( 'custom-header', apply_filters( 'twentysixteen_custom_header_args', array(
54           'default-text-color'     => $default_text_color,
55           'width'                  => 1200,
56           'height'                 => 280,
57           'flex-height'            => true,
58           'wp-head-callback'       => 'twentysixteen_header_style',
59      ) ) );
60 }
61 add_action( 'after_setup_theme', 'twentysixteen_custom_header_and_background' );
62