comment_guid()
Displays the feed GUID for the current comment.
No Hooks.
Returns
null. Nothing (null).
Usage
comment_guid( $comment_id );
- $comment_id(int|WP_Comment)
- Optional comment object or ID.
Default:global comment object
Changelog
| Since 2.5.0 | Introduced. |
comment_guid() comment guid code WP 7.0
function comment_guid( $comment_id = null ) {
echo esc_url( get_comment_guid( $comment_id ) );
}