get_comment_meta


get_comment_meta ( $comment_id, $key = '', $single = false )

Parameters:
  • (int) $comment_id Comment ID.
  • (string) $key Optional. The meta key to retrieve. By default, returns data for all keys.
  • (bool) $single Whether to return a single value.
Links:
Returns:
  • (mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.
Defined at:

Description

Retrieve comment meta field for a comment.

Related Functions

get_comment_time, delete_comment_meta, get_commentdata, get_comment, get_comment_text

Top Google Results

User discussions

wpseek mobile