A WordPress-centric search engine for devs and theme authors



get_random_header_image ›

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

Get 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;
}