Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentyfifteen_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
25       *     An array of custom-header support arguments.
26       *
27       *     @type string $default_text_color     Default color of the header text.
28       *     @type int    $width                  Width in pixels of the custom header image. Default 954.
29       *     @type int    $height                 Height in pixels of the custom header image. Default 1300.
30       *     @type string $wp-head-callback       Callback function used to styles the header image and text
31       *                                          displayed on the blog.
32       * }
33       */
34      add_theme_support( 'custom-header', apply_filters( 'twentyfifteen_custom_header_args', array(
35           'default-text-color'     => $default_text_color,
36           'width'                  => 954,
37           'height'                 => 1300,
38           'wp-head-callback'       => 'twentyfifteen_header_style',
39      ) ) );
40 }
41 add_action( 'after_setup_theme', 'twentyfifteen_custom_header_setup' );
42
43 /**