函数原型
get_random_header_image(): string
函数描述
Gets random header image URL from registered images in theme.
是否弃用
未弃用
函数参数
无
函数返回值
string Path to header image.
函数位置
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;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |

