WPDev.one
Core Function
View Source on Trac ↗

get_edit_comment_link()

get_edit_comment_link( mixed $comment_id = 0, mixed $context = 'display' )

Retrieves the edit comment link.

Parameters 2 required

Name / Type Description
(int

| WP_Comment) $comment_id Optional. Comment ID or WP_Comment object.

Required
string

$context Optional. Context in which the URL should be used. Either 'display', to include HTML entities, or 'url'. Default 'display'.

Required

Return Value

((string)
(string | void) The edit comment link URL for the given comment, or void if the comment id does not exist or the current user is not allowed to edit it.

Function Information

Since Version
2.3.0
Source File
wp-includes/link-template.php
Advertisement