Clanbite Social Kit

query_comments( int $post_id, int $page, int $per_page ): array{rows: object[], total: int}

List comments for a post by top-level pages, including descendants for those parents.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Post ID.

$page (int) Required

Page.

$per_page (int) Required

Top-level replies per page.

Returns

array{rows: object[], total: int}

Defined in inc/Social/Data_Access.php