get_comments_link

Advertisement

Summery Summery

Filters the returned post comments permalink.

Syntax Syntax

apply_filters( 'get_comments_link', string $comments_link, int|WP_Post $post_id )

Parameters Parameters

$comments_link

(string) Post comments permalink with '#comments' appended.

$post_id

(int|WP_Post) Post ID or WP_Post object.

Source Source

File: wp-includes/comment-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.