comment_guid

Display the feed GUID for the current comment.

Description

comment_guid( (constant) $comment_id = null ); 

Parameters (1)

0. $comment_id — Optional. (constant) => null
Comment object or id. Defaults to global comment object.

Usage

  1. if ( !function_exists( 'comment_guid' ) ) { 
  2. require_once ABSPATH . WPINC . '/feed.php'; 
  3.  
  4. // Optional comment object or id. Defaults to global comment object. 
  5. $comment_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = comment_guid($comment_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/feed.php  
  1. function comment_guid($comment_id = null) { 
  2. echo esc_url( get_comment_guid($comment_id) );