Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_comment_link()

3 tags 1 category

get_comment_link() — Retrieves the link to a given comment.

Inputs: $comment (WP_Comment|int|null): Optional. Comment to retrieve. Default current comment. $args (array): An array of optional arguments to override the defaults. Field $type (string): Passed to get_page_of_comment(). Field $page (int): Current page of comments, for calculating comment pagination. Field $per_page (int): Per-page value for comment pagination. Field $max_depth (int): Passed to get_page_of_comment(). Field $cpage (int|string): 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.

Returns string: The permalink to the given comment.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…