Clanbite Social Kit

get_user_poll_vote_option_index( int $post_id, int $user_id ): int|null

Which option index the user voted for, if any.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Social post ID.

$user_id (int) Required

WordPress user ID.

Returns

int|null Option index or null.

Defined in inc/Social/Data_Access.php