Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentyfourteen_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 int    $width                  Width in pixels of the custom header image. Default 1260.
30       *     @type int    $height                 Height in pixels of the custom header image. Default 240.
31       *     @type bool   $flex_height            Whether to allow flexible-height header images. Default true.
32       *     @type string $admin_head_callback    Callback function used to style the image displayed in
33       *                                          the Appearance > Header screen.
34       *     @type string $admin_preview_callback Callback function used to create the custom header markup in
35       *                                          the Appearance > Header screen.
36       * }
37       */
38      add_theme_support( 'custom-header', apply_filters( 'twentyfourteen_custom_header_args', array(
39           'default-text-color'     => 'fff',
40           'width'                  => 1260,
41           'height'                 => 240,
42           'flex-height'            => true,
43           'wp-head-callback'       => 'twentyfourteen_header_style',
44           'admin-head-callback'    => 'twentyfourteen_admin_header_style',
45           'admin-preview-callback' => 'twentyfourteen_admin_header_image',
46      ) ) );
47 }