has_header_image()
has_header_image()
检查是否设置了标题图像。
Check whether a header image is set or not.
说明(Description)
另见函数 get_header_image()
返回(Return)
(bool)是否设置了头图像。
源码(Source)
/** * Check whether a header image is set or not. * * @since 4.2.0 * * @see get_header_image() * * @return bool Whether a header image is set or not. */ function has_header_image() { return (bool) get_header_image(); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.2.0 | wp-includes/theme.php:1068 | 1 function | 1 function |
笔记(Notes)
相关:
has_header_image() 为WP2原创文章,链接:https://www.wp2.cn/functions/has_header_image/