wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_random_header_image › WordPress Function

Since3.2.0
已弃用n/a
get_random_header_image ( 没有参数 )
返回:
  • (string) Path to header image.
定义在:
文档:

Gets random header image URL from registered images in theme.



源码

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

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

	return $random_image->url;
}