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



get_attached_file › WordPress过滤钩子

Since2.1.0
已弃用n/a
› apply_filters( 'get_attached_file', $file, $attachment_id )
参数: (2)
  • () file The file path to where the attached file should be, false otherwise.
    Required: Yes
  • () attachment_id Attachment ID.
    Required: Yes
定义在:
文档:

Filters the attached file based on the given ID.





源码

return apply_filters( 'get_attached_file', $file, $attachment_id );