wpseek.com
A WordPress-centric search engine for devs and theme authors



get_comments_link › WordPress Filter Hooks

Since3.6.0
Deprecatedn/a
apply_filters( 'get_comments_link', $comments_link, $post )
Parameters: (2)
  • (string) $comments_link Post comments permalink with '#comments' appended.
    Required: Yes
  • (int|WP_Post) $post 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 );