A WordPress-centric search engine for devs and theme authors



get_comments_link ›

Since3.6.0
Deprecatedn/a
apply_filters( 'get_comments_link', $comments_link, $post_id )
Parameters: (2)
  • (string) $comments_link Post comments permalink with '#comments' appended.
    Required: Yes
  • (int|WP_Post) $post_id Post ID or WP_Post object.
    Required: Yes
Defined at:
Codex:

Filters the returned post comments permalink.





Source

return apply_filters( 'get_comments_link', $comments_link, $post_id );