twentyeleven_header_image_width
Filter the Twenty Eleven default header image width.
Description
Parameters (1)
- 0. $int (int) =>
1000
- The int.
Usage
- To run the hook, copy the example below.
- $int = apply_filters( 'twentyeleven_header_image_width', $int );
- if ( !empty( $int ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the twentyeleven_header_image_width callback
- function filter_twentyeleven_header_image_width( $int ) {
- // make filter magic happen here...
- return $int;
- };
- // add the filter
- add_filter( 'twentyeleven_header_image_width', 'filter_twentyeleven_header_image_width', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'twentyeleven_header_image_width', 'filter_twentyeleven_header_image_width', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /functions.php
- define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyeleven_header_image_width', 1000 ) );