函数原型
get_custom_header_markup(): string
函数描述
Retrieves the markup for a custom header.
是否弃用
未弃用
函数参数
无
函数返回值
string The markup for a custom header on success.
函数位置
File: wp-includes/theme.php.
函数源码
function get_custom_header_markup() {
if ( ! has_custom_header() && ! is_customize_preview() ) {
return '';
}
return sprintf(
'<div id="wp-custom-header" class="wp-custom-header">%s</div>',
get_header_image_tag()
);
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |

