* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package cafesio */ /** * Set up the WordPress core custom header feature. * * @uses cafesio_header_style() */ function cafesio_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'cafesio_custom_header_args', array( 'default-text-color' => '000000', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'cafesio_header_style', ) ) ); } add_action( 'after_setup_theme', 'cafesio_custom_header_setup' ); if ( ! function_exists( 'cafesio_header_style' ) ) : function cafesio_header_style() { $header_text_color = get_header_textcolor(); if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { return; } } endif;