• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyfifteen_custom_header_setup() – Set up the WordPress core custom header feature.

You appear to be a bot. Output may be restricted

Description

Set up the WordPress core custom header feature.

Usage

twentyfifteen_custom_header_setup();

Parameters

Returns

void

Source

File name: twentyfifteen/inc/custom-header.php


Lines:

1 to 34 of 34
function twentyfifteen_custom_header_setup() {
  $color_scheme       = twentyfifteen_get_color_scheme();
  $default_text_color = trim( $color_scheme[4], '#' );

  add_theme_support(
    'custom-header',
    
/**
 * Filters Twenty Fifteen custom-header support arguments.
 *
 * @since Twenty Fifteen 1.0
 *
 * @param array $args {
 *     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.
 * }
 */
    apply_filters(
      'twentyfifteen_custom_header_args',
      array(
        'default-text-color' => $default_text_color,
        'width'              => 954,
        'height'             => 1300,
        'wp-head-callback'   => 'twentyfifteen_header_style',
      )
    )
  );
}
 

 View on Trac

Published: 19th December 2019 | Last updated: 21st August 2020

Primary Sidebar

Information

Function name: twentyfifteen_custom_header_setup
Plugin ref: Twenty Fifteen
Version: 2.8
Sourcefile: inc/custom-header.php
File ref: inc/custom-header.php
Deprecated?: No
API Letters: C,H,S,T

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 5.6.2. PHP: 7.3.27
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites