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



get_commentdata › WordPress Function

Desde0.71
Obsoleto2.7.0
get_commentdata ( $comment_id, $no_cache = 0, $include_unapproved = false )
Parâmetros: (3)
  • (int) $comment_id The ID of the comment
    Required: Yes
  • (int) $no_cache Whether to use the cache (cast to bool)
    Required: No
    Padrão:
  • (bool) $include_unapproved Whether to include unapproved comments
    Required: No
    Padrão: false
Ver:
Retorna:
  • (array) The comment data
Definido em:
Codex:

Retrieve an array of comment data about comment $comment_id.



Fonte

function get_commentdata( $comment_id, $no_cache = 0, $include_unapproved = false ) {
	_deprecated_function( __FUNCTION__, '2.7.0', 'get_comment()' );
	return get_comment($comment_id, ARRAY_A);
}