(int) $user_id, 'status' => $comment_status, 'type' => 'comment', 'post_type' => ['post'], 'orderby' => 'comment_date_gmt', 'order' => 'DESC', 'update_comment_meta_cache' => false, ]; $user_comments = get_comments(array_merge($comment_args, [ 'number' => $per_page, 'offset' => $comment_offset, ])); $comments_total = (int) get_comments(array_merge($comment_args, ['count' => true])); $has_more = $comments_total > ($comment_offset + count($user_comments)); if ($user_comments) : ?>
$c, ]); ?>