Clanbite Social Kit

get_poll_vote_counts( int $post_id, int $option_count ): int[]

Vote counts per option index for a post.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Social post ID.

$option_count (int) Required

Number of poll options (from stored JSON).

Returns

int[] Indexed 0 … option_count – 1.

Defined in inc/Social/Data_Access.php