get_commentdata()
Устарела с версии 2.7.0. Больше не поддерживается и может быть удалена. Используйте get_comment().
Retrieve an array of comment data about comment $comment_id.
Хуков нет.
Возвращает
Массив. The comment data
Использование
get_commentdata( $comment_id, $no_cache, $include_unapproved );
- $comment_id(int) (обязательный)
- The ID of the comment.
- $no_cache(int)
- Whether to use the cache (cast to bool).
- $include_unapproved(true|false)
- Whether to include unapproved comments.
По умолчанию: false
Заметки
- Смотрите: get_comment()
Список изменений
| С версии 0.71 | Введена. |
| Устарела с 2.7.0 | Use get_comment() |
Код get_commentdata() get commentdata WP 6.8.3
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);
}