has_custom_header

The timeline below displays how wordpress function has_custom_header has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Checks whether a custom header is set or not.
 *
 * @since 4.7.0
 *
 * @return bool True if a custom header is set. False if not.
 */
function has_custom_header()
{
    if (has_header_image() || has_header_video() && is_header_video_active()) {
        return true;
    }
    return false;
}

WordPress Version: 4.7

/**
 * Check whether a custom header is set or not.
 *
 * @since 4.7.0
 *
 * @return bool True if a custom header is set. False if not.
 */
function has_custom_header()
{
    if (has_header_image() || has_header_video() && is_header_video_active()) {
        return true;
    }
    return false;
}