wpseek.com
A WordPress-centric search engine for devs and theme authors



get_random_header_image › WordPress Function

Since3.2.0
Deprecatedn/a
get_random_header_image ( No parameters )
Returns:
  • (string) Path to header image.
Defined at:
Codex:

Gets random header image URL from registered images in theme.



Source

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

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

	return $random_image->url;
}