get_comment_meta

Definition:
function get_comment_meta($comment_id, $key, $single = false) {}

Retrieve comment meta field for a comment.

Parameters

  • int $comment_id: Comment ID.
  • string $key: The meta key to retrieve.
  • bool $single: Whether to return a single value.

Return values

returns:Will be an array if $single is false. Will be value of meta data field if $single is true.

Source code

function get_comment_meta($comment_id, $key, $single = false) {

	return get_metadata('comment', $comment_id, $key, $single);

}

1322

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: