apply_filters( 'twentysixteen_custom_header_args', array $args )
- Since
- Twenty Sixteen 1.0
Filters the arguments used when adding 'custom-header' support in Twenty Sixteen.
Compatibility
- WordPress
- since Twenty Sixteen 1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$argsarray- { An array of custom-header support arguments.
@type string $default-text-color Default color of the header text.
@type int $width Width in pixels of the custom header image. Default 1200.
@type int $height Height in pixels of the custom header image. Default 280.
@type bool $flex-height Whether to allow flexible-height header images. Default true.
@type callable $wp-head-callback Callback function used to style the header image and text displayed on the blog.
}$default-text-colorstringDefault color of the header text.$widthintWidth in pixels of the custom header image. Default 1200.$heightintHeight in pixels of the custom header image. Default 280.$flex-heightboolWhether to allow flexible-height header images. Default true.$wp-head-callbackcallableCallback function used to style the header image and text displayed on the blog.
Where this hook fires · 1
wp-content/themes/twentysixteen/inc/customizer.php:61twentysixteen_custom_header_and_background()
Source code
* @type int $height Height in pixels of the custom header image. Default 280. * @type bool $flex-height Whether to allow flexible-height header images. Default true. * @type callable $wp-head-callback Callback function used to style the header image and text * displayed on the blog. * } */ apply_filters( 'twentysixteen_custom_header_args', array( 'default-text-color' => $default_text_color, 'width' => 1200, 'height' => 280, 'flex-height' => true,Changelog
Introduced in Twenty Sixteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.