• 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 / twentyfourteen_custom_header_setup() – Set up the WordPress core custom header settings.

You appear to be a bot. Output may be restricted

Description

Set up the WordPress core custom header settings.

Usage

twentyfourteen_custom_header_setup();

Parameters

Returns

void

Source

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


Lines:

1 to 37 of 37
function twentyfourteen_custom_header_setup() {
  add_theme_support(
    'custom-header',
    
/**
 * Filters Twenty Fourteen custom-header support arguments.
 *
 * @since Twenty Fourteen 1.0
 *
 * @param array $args {
 *     An array of custom-header support arguments.
 *
 *     @type bool   $header_text            Whether to display custom header text. Default false.
 *     @type int    $width                  Width in pixels of the custom header image. Default 1260.
 *     @type int    $height                 Height in pixels of the custom header image. Default 240.
 *     @type bool   $flex_height            Whether to allow flexible-height header images. Default true.
 *     @type string $admin_head_callback    Callback function used to style the image displayed in
 *                                          the Appearance > Header screen.
 *     @type string $admin_preview_callback Callback function used to create the custom header markup in
 *                                          the Appearance > Header screen.
 * }
 */
    apply_filters(
      'twentyfourteen_custom_header_args',
      array(
        'default-text-color'     => 'fff',
        'width'                  => 1260,
        'height'                 => 240,
        'flex-height'            => true,
        'wp-head-callback'       => 'twentyfourteen_header_style',
        'admin-head-callback'    => 'twentyfourteen_admin_header_style',
        'admin-preview-callback' => 'twentyfourteen_admin_header_image',
      )
    )
  );
}
 

 View on Trac

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

Primary Sidebar

Information

Function name: twentyfourteen_custom_header_setup
Plugin ref: Twenty Fourteen
Version: 3.0
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