get_random_header_image example


function get_header_image() {
    $url = get_theme_mod( 'header_image', get_theme_support( 'custom-header', 'default-image' ) );

    if ( 'remove-header' === $url ) {
        return false;
    }

    if ( is_random_header_image() ) {
        $url = get_random_header_image();
    }

    /** * Filters the header image URL. * * @since 6.1.0 * * @param string $url Header image URL. */
    $url = apply_filters( 'get_header_image', $url );

    
Home | Imprint | This part of the site doesn't use cookies.