过滤返回的帖子评论永久链接。
原型
apply_filters( 'get_comments_link', string $comments_link, int|WP_Post $post_id )
参数
$comments_link
(string)
发表评论永久链接’
$post_id
(int|WP_Post)
发布ID或WP_Post对象。
源文件
路径:wp-includes/comment-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/get_comments_link/