Advertisements

get_comment_guid

Definition:
function get_comment_guid($comment_id = null) {}

Retrieve the feed GUID for the current comment.

Parameters

  • int|object $comment_id: Optional comment object or id. Defaults to global comment object.

Return values

returns:false on failure or guid for comment on success.

Source code

function get_comment_guid($comment_id = null) {

	$comment = get_comment($comment_id);



	if ( !is_object($comment) )

		return false;



	return get_the_guid($comment->comment_post_ID) . '#comment-' . $comment->comment_ID;

}

1314

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: