Filter hook 'get_comments_link'

in WP Core File wp-includes/comment-template.php at line 883

Description

Filters the returned post comments permalink.

Occurrences

Filename Line Number
wp-includes/comment-template.php 883

Parameters

Type Name Description
string $comments_link Post comments permalink with '#comments' appended.
int|WP_Post $post Post ID or WP_Post object.

PHP Doc

/**
	 * Filters the returned post comments permalink.
	 *
	 * @since 3.6.0
	 *
	 * @param string      $comments_link Post comments permalink with '#comments' appended.
	 * @param int|WP_Post $post          Post ID or WP_Post object.
	 */