comment_guid() WordPress Function
The comment_guid function is used to return the unique identifier for the current comment. This function is useful for making sure that each comment has a unique identifier, especially when comments are being imported or exported from a Wordpress site.
comment_guid( int|WP_Comment $comment_id = null ) #
Display the feed GUID for the current comment.
Parameters
- $comment_id
(int|WP_Comment)(Optional)comment object or ID. Defaults to global comment object.
Default value: null
Source
File: wp-includes/feed.php
function comment_guid( $comment_id = null ) { echo esc_url( get_comment_guid( $comment_id ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |