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



icon_dir ›

Since2.0.0
已弃用
apply_filters( 'icon_dir', get_template_directory()
参数: (4)
  • (int) $id Optional. Post ID.
    Required: Yes
  • (bool) $fullsize Optional, default is false. Whether to use full size image.
    Required: Yes
  • (array) $max_dims Optional. Max image dimensions.
    Required: Yes
  • (bool) $permalink Optional, default is false. Whether to include permalink to image.
    Required: Yes
查看:
  • wp_get_attachment_link()
返回:
  • ()
定义在:
文档:

Retrieve HTML content of attachment image with link.





源码

$icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' );