wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_commentdata › WordPress Function

Depuis0.71
Dépréciée2.7.0
get_commentdata ( $comment_id, $no_cache = 0, $include_unapproved = false )
Paramètres: (3)
  • (int) $comment_id The ID of the comment
    Requis: Oui
  • (int) $no_cache Whether to use the cache (cast to bool)
    Requis: Non
    Défaut:
  • (bool) $include_unapproved Whether to include unapproved comments
    Requis: Non
    Défaut: false
Voir:
Retourne:
  • (array) The comment data
Défini(e) dans:
Codex:

Retrieve an array of comment data about comment $comment_id.



Source

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);
}