apply_filters( 'twentyfifteen_custom_header_args', array $args )
- Since
- Twenty Fifteen 1.0
Filters Twenty Fifteen custom-header support arguments.
Compatibility
- WordPress
- since Twenty Fifteen 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 954.
@type int $height Height in pixels of the custom header image. Default 1300.
@type string $wp-head-callback Callback function used to styles 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 954.$heightintHeight in pixels of the custom header image. Default 1300.$wp-head-callbackstringCallback function used to styles the header image and text displayed on the blog.
Where this hook fires · 1
wp-content/themes/twentyfifteen/inc/custom-header.php:36twentyfifteen_custom_header_setup()
Source code
* @type int $width Width in pixels of the custom header image. Default 954. * @type int $height Height in pixels of the custom header image. Default 1300. * @type string $wp-head-callback Callback function used to styles the header image and text * displayed on the blog. * } */ apply_filters( 'twentyfifteen_custom_header_args', array( 'default-text-color' => $default_text_color, 'width' => 954, 'height' => 1300, 'wp-head-callback' => 'twentyfifteen_header_style',Changelog
Introduced in Twenty Fifteen 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.