On this page
comment_guid( int|WP_Comment $comment_id = null )
Displays the feed GUID for the current comment.
Parameters
$comment_idint|WP_Comment Optional-
comment object or ID. Defaults to global comment object.
Default:
null
Source
File: wp-includes/feed.php. View all references
function comment_guid( $comment_id = null ) {
echo esc_url( get_comment_guid( $comment_id ) );
}
Related
Uses
| Uses | Description |
|---|---|
| get_comment_guid() wp-includes/feed.php | Retrieves the feed GUID for the current comment. |
| esc_url() wp-includes/formatting.php | Checks and cleans a URL. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comment_guid