You appear to be a bot. Output may be restricted
Description
Retrieve comment meta field for a comment.
Usage
$mixed = get_comment_meta( $comment_id, $key, $single );
Parameters
- $comment_id
- ( int ) required – Comment ID.
- $key
- ( string ) optional – Optional. The meta key to retrieve. By default, returns data for all keys.
- $single
- ( bool ) optional – Optional. Whether to return a single value. This parameter has no effect if $key is not specified. Default false.
Returns
mixed An array if $single is false. The value of meta data field if $single is true. False for an invalid $comment_id.
Source
File name: wordpress/wp-includes/comment.php
Lines:
1 to 3 of 3
function get_comment_meta( $comment_id, $key = '', $single = false ) { return get_metadata( 'comment', $comment_id, $key, $single ); }