过滤附件的永久链接。
原型
apply_filters( 'attachment_link', string $link, int $post_id )
参数
$link
(string)
附件的永久链接。
$post_id
(int)
附件ID。
源文件
路径:wp-includes/link-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/attachment_link/
过滤附件的永久链接。
apply_filters( 'attachment_link', string $link, int $post_id )
$link
(string)
附件的永久链接。
$post_id
(int)
附件ID。
路径:wp-includes/link-template.php
英文文档:https://developer.wordpress.org/reference/hooks/attachment_link/
请在后台设置小工具!