WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get random header image

Contents

Description

Get random header image from registered images in theme.

Usage

<?php get_random_header_image(  ); ?>

Return Values

(string) 
Path to header image

Change Log

Since: 3.2

Source File

get_random_header_image() is located in wp-includes/theme.php