$user_id, 'status' => 'approve', 'post_status' => 'publish', 'count' => true, ]); $comments = get_comments([ 'user_id' => $user_id, 'status' => 'approve', 'post_status' => 'publish', 'number' => $per_page, 'offset' => ($paged - 1) * $per_page, 'orderby' => 'comment_date_gmt', 'order' => 'DESC', ]); $max_pages = ceil($total / $per_page); ?>
comment_post_ID); if (!$post) continue; ?>
comment_content); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
1) : ?>
str_replace(999999999, '%#%', esc_url(get_pagenum_link(999999999))), 'format' => '?tab=comments&paged=%#%', 'current' => $paged, 'total' => $max_pages, 'prev_text' => '', 'next_text' => '', ]); ?>