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



wp_get_attachment_url ›

Since2.1.0
已弃用n/a
apply_filters( 'wp_get_attachment_url', $url, $post->ID )
参数: (2)
  • (string) $url URL for the given attachment.
    Required: Yes
  • (int) $attachment_id Attachment post ID.
    Required: Yes
定义在:
文档:

Filters the attachment URL.





源码

$url = apply_filters( 'wp_get_attachment_url', $url, $post->ID );