get_random_header_image()

Gets random header image URL from registered images in theme.


Return Return

(string) Path to header image.


Top ↑

Source Source

File: wp-includes/theme.php

function get_random_header_image() {
	$random_image = _get_random_header_data();

	if ( empty( $random_image->url ) ) {
		return '';
	}

	return $random_image->url;
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.