get_commentdata

The timeline below displays how wordpress function get_commentdata has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Retrieve an array of comment data about comment $comment_id.
 *
 * @since 0.71
 * @deprecated 2.7.0 Use get_comment()
 * @see get_comment()
 *
 * @param int $comment_id The ID of the comment
 * @param int $no_cache Whether to use the cache (cast to bool)
 * @param bool $include_unapproved Whether to include unapproved comments
 * @return array The comment data
 */
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);
}

WordPress Version: 4.6

/**
 * Retrieve an array of comment data about comment $comment_ID.
 *
 * @since 0.71
 * @deprecated 2.7.0 Use get_comment()
 * @see get_comment()
 *
 * @param int $comment_ID The ID of the comment
 * @param int $no_cache Whether to use the cache (cast to bool)
 * @param bool $include_unapproved Whether to include unapproved comments
 * @return array The comment data
 */
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);
}

WordPress Version: 4.4

/**
 * Retrieve an array of comment data about comment $comment_ID.
 *
 * @since 0.71
 * @deprecated 2.7.0 Use get_comment()
 * @see get_comment()
 *
 * @param int $comment_ID The ID of the comment
 * @param int $no_cache Whether to use the cache (cast to bool)
 * @param bool $include_unapproved Whether to include unapproved comments
 * @return array The comment data
 */
function get_commentdata($comment_ID, $no_cache = 0, $include_unapproved = false)
{
    _deprecated_function(__FUNCTION__, '2.7', 'get_comment()');
    return get_comment($comment_ID, ARRAY_A);
}

WordPress Version: 3.9

/**
 * Retrieve an array of comment data about comment $comment_ID.
 *
 * @since 0.71
 * @deprecated 2.7.0
 * @deprecated Use get_comment()
 * @see get_comment()
 *
 * @param int $comment_ID The ID of the comment
 * @param int $no_cache Whether to use the cache (cast to bool)
 * @param bool $include_unapproved Whether to include unapproved comments
 * @return array The comment data
 */
function get_commentdata($comment_ID, $no_cache = 0, $include_unapproved = false)
{
    _deprecated_function(__FUNCTION__, '2.7', 'get_comment()');
    return get_comment($comment_ID, ARRAY_A);
}

WordPress Version: 3.7

/**
 * Retrieve an array of comment data about comment $comment_ID.
 *
 * @since 0.71
 * @deprecated 2.7
 * @deprecated Use get_comment()
 * @see get_comment()
 *
 * @param int $comment_ID The ID of the comment
 * @param int $no_cache Whether to use the cache (cast to bool)
 * @param bool $include_unapproved Whether to include unapproved comments
 * @return array The comment data
 */
function get_commentdata($comment_ID, $no_cache = 0, $include_unapproved = false)
{
    _deprecated_function(__FUNCTION__, '2.7', 'get_comment()');
    return get_comment($comment_ID, ARRAY_A);
}