get_comment_link

Advertisement

Summery Summery

Filters the returned single comment permalink.

Syntax Syntax

apply_filters( 'get_comment_link', string $link, WP_Comment $comment, array $args, int $cpage )

Parameters Parameters

$link

The comment permalink with '#comment-$id' appended.

$comment

The current comment object.

$args

An array of arguments to override the defaults.

$cpage

The calculated 'cpage' value.

Source Source

File: wp-includes/comment-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Added the $cpage parameter.
2.8.0 Introduced.

See also See also

Advertisement

Leave a Reply