get_comment_link


get_comment_link ( $comment = null, $args = array() )

Parameters:
  • (WP_Comment|int|null) comment Comment to retrieve. Default current comment.
  • (array) args { An array of optional arguments to override the defaults. @type string $type Passed to get_page_of_comment(). @type int $page Current page of comments, for calculating comment pagination. @type int $per_page Per-page value for comment pagination. @type int $max_depth Passed to get_page_of_comment(). @type int|string $cpage Value to use for the comment's "comment-page" or "cpage" value. If provided, this value overrides any value calculated from `$page` and `$per_page`. }
See:
  • get_page_of_comment()
Returns:
  • (string) The permalink to the given comment.
Defined at:
Change Log:
  • 4: .

Description

Retrieves the link to a given comment.

Related Functions

get_comments_link, edit_comment_link, next_comments_link, get_comment_id, comment_link

Top Google Results

User discussions

wpseek mobile