Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_comment_meta ›

Desde2.9.0
Obsoleton/a
get_comment_meta ( $comment_id, $key = '', $single = false )
Parâmetros: (3)
  • (int) $comment_id Comment ID.
    Required: Yes
  • (string) $key Optional. The meta key to retrieve. By default, returns data for all keys.
    Required: No
    Padrão: (empty)
  • (bool) $single Whether to return a single value.
    Required: No
    Padrão: false
Links:
Retorna:
  • (mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.
Definido em:
Codex:

Retrieve comment meta field for a comment.



Fonte

function get_comment_meta($comment_id, $key = '', $single = false) {
	return get_metadata('comment', $comment_id, $key, $single);
}