1. 首页
  2. WordPress 函数手册

get_header_image_tag()

get_header_image_tag( array $attr = array() )

为自定义头图像创建图像标记标记。
Create image tag markup for a custom header image.

目录锚点:#参数#返回#源码


参数(Parameters)

参数 类型 必填 说明
$attr (array) 可选 图像标记的其他属性。可用于覆盖默认属性。

返回(Return)

(string)HTML图像元素标记或失败时为空string。


源码(Source)


更新版本 源码位置 使用 被使用
4.4.0 wp-includes/theme.php:1102 2 10

get_header_image_tag() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_header_image_tag/