Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentyten_header_image_height

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
101
102      // The custom header business starts here.
103
104      $custom_header_support = array(
105           // The default image to use.
106           // The %s is a placeholder for the theme template directory URI.
107           'default-image' => '%s/images/headers/path.jpg',
108           // The height and width of our custom header.
109           'width' => apply_filters( 'twentyten_header_image_width', 940 ),
110           'height' => apply_filters( 'twentyten_header_image_height', 198 ),
111           // Support flexible heights.
112           'flex-height' => true,
113           // Don't support text inside the header image.
114           'header-text' => false,
115           // Callback for styling the header preview in the admin.
116           'admin-head-callback' => 'twentyten_admin_header_style',
117      );
118      
119      add_theme_support( 'custom-header', $custom_header_support );