'', 'default-text-color' => 'fff', 'width' => 1200, 'height' => 500, 'flex-height' => true, 'wp-head-callback' => 'snaps_header_style', 'admin-head-callback' => 'snaps_admin_header_style', 'admin-preview-callback' => 'snaps_admin_header_image', ); $args = apply_filters( 'snaps_custom_header_args', $args ); if ( function_exists( 'wp_get_theme' ) ) { add_theme_support( 'custom-header', $args ); } } add_action( 'after_setup_theme', 'snaps_custom_header_setup' ); if ( ! function_exists( 'snaps_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see snaps_custom_header_setup(). */ function snaps_header_style() { $text_color = get_header_textcolor(); // If no custom color for text is set, let's bail. if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) : return; endif; ?>