get_comment_guid

Advertisement

Summery Summery

Retrieve the feed GUID for the current comment.

Syntax Syntax

get_comment_guid( int|WP_Comment $comment_id = null )

Parameters Parameters

$comment_id

(int|WP_Comment) (Optional) comment object or id. Defaults to global comment object.

Default value: null

Return Return

(string|false) GUID for comment on success, false on failure.

Source Source

File: wp-includes/feed.php

 *
 * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
 * @return string|false GUID for comment on success, false on failure.
 */
function get_comment_guid( $comment_id = null ) {
	$comment = get_comment( $comment_id );

	if ( ! is_object( $comment ) ) {
		return false;

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.