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



get_image_tag › WordPress过滤钩子

Since2.6.0
已弃用n/a
› apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size )
参数: (6)
  • () html HTML content for the image.
    Required: Yes
  • () id Attachment ID.
    Required: Yes
  • () alt Image description for the alt attribute.
    Required: Yes
  • () title Image description for the title attribute.
    Required: Yes
  • () align Part of the class name for aligning the image.
    Required: Yes
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
定义在:
文档:

Filters the HTML content for the image tag.





源码

return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );