WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
100 | ) ); |
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 | |